FreeCalypso > hg > fc-tourmaline
comparison src/cs/drivers/drv_app/ffs/board/makefile @ 0:4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Fri, 16 Oct 2020 06:23:26 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:4e78acac3d88 |
|---|---|
| 1 # | |
| 2 # FFS PC Makefile | |
| 3 # | |
| 4 | |
| 5 # Auto-generated source files | |
| 6 SRCS_AUTO := effs.c | |
| 7 # Target-only source files | |
| 8 SRCS_TARGET := task.c target.c ffs_env.c ffs_env.h amdsbdrv.c intelsbdrv.c ffspcm.c | |
| 9 | |
| 10 CFLAGS := -Wall -g -DWITH_PCM=1 -DTARGET=0 -DTFFS2_PROTOCOL | |
| 11 INCLUDE := -I. | |
| 12 INCLUDE += -I../../ -Ic:\cygnus\cygwin-b20\H-i586-cygwin32\i586-cygwin32\include | |
| 13 LDFLAGS := | |
| 14 CC := gcc | |
| 15 CFLAGS += $(INCLUDE) | |
| 16 | |
| 17 SRCS := $(wildcard *.c) | |
| 18 SRCS := $(filter-out $(SRCS_TARGET), $(SRCS)) | |
| 19 BNAMES := $(basename $(SRCS)) | |
| 20 BNAMES_AUTO := $(basename $(SRCS_AUTO)) | |
| 21 OBJS := $(addsuffix .o, $(BNAMES)) $(addsuffix .o, $(BNAMES_AUTO)) | |
| 22 DEPS := $(addsuffix .d, $(BNAMES)) | |
| 23 | |
| 24 | |
| 25 .PHONY: all clean distclean | |
| 26 | |
| 27 ffs: $(OBJS) | |
| 28 $(CC) -o $@ $^ | |
| 29 | |
| 30 effs.c: ../ffs.h mkeffs.pl | |
| 31 perl -w mkeffs.pl c < $< > $@ | |
| 32 | |
| 33 # Not used on PC | |
| 34 target.c: ffs.c mktarget.pl | |
| 35 perl -w mktarget.pl | |
| 36 | |
| 37 | |
| 38 ############################################################ | |
| 39 # Misc | |
| 40 ############################################################ | |
| 41 | |
| 42 clean: | |
| 43 -rm -f *.o *.d *~ core ffs ffs.out log | |
| 44 -rm -f *.obj *.exe *.exe.core target.c effs.c | |
| 45 | |
| 46 c: clean | |
| 47 | |
| 48 # Create dependencies | |
| 49 %.d: %.c | |
| 50 @echo Making dependencies for $<. | |
| 51 @$(CC) -MM $(INCLUDE) $(CFLAGS) $< | sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' > $@ | |
| 52 | |
| 53 | |
| 54 -include $(DEPS) |
