diff src/cs/drivers/drv_app/ffs/board/makefile @ 0:945cf7f506b2

src/cs: chipsetsw import from tcs211-fcmodem binary blobs and LCD demo files have been excluded, all line endings are LF only
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 25 Sep 2016 22:50:11 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/cs/drivers/drv_app/ffs/board/makefile	Sun Sep 25 22:50:11 2016 +0000
@@ -0,0 +1,54 @@
+#
+# FFS PC Makefile
+#
+
+# Auto-generated source files
+SRCS_AUTO := effs.c
+# Target-only source files
+SRCS_TARGET := task.c target.c ffs_env.c ffs_env.h amdsbdrv.c intelsbdrv.c ffspcm.c
+
+CFLAGS := -Wall -g -DWITH_PCM=1 -DTARGET=0 -DTFFS2_PROTOCOL 
+INCLUDE := -I.
+INCLUDE += -I../../ -Ic:\cygnus\cygwin-b20\H-i586-cygwin32\i586-cygwin32\include
+LDFLAGS :=
+CC := gcc
+CFLAGS += $(INCLUDE)
+
+SRCS := $(wildcard *.c)
+SRCS := $(filter-out $(SRCS_TARGET), $(SRCS))
+BNAMES := $(basename $(SRCS))
+BNAMES_AUTO := $(basename $(SRCS_AUTO))
+OBJS := $(addsuffix .o, $(BNAMES)) $(addsuffix .o, $(BNAMES_AUTO))
+DEPS := $(addsuffix .d, $(BNAMES))
+
+
+.PHONY: all clean distclean
+
+ffs:	$(OBJS)
+	$(CC) -o $@ $^
+
+effs.c: ../ffs.h mkeffs.pl
+	perl -w mkeffs.pl c < $< > $@
+
+# Not used on PC
+target.c: ffs.c mktarget.pl
+	perl -w mktarget.pl
+
+
+############################################################
+# Misc
+############################################################
+
+clean:
+	-rm -f *.o *.d *~ core ffs ffs.out log
+	-rm -f *.obj *.exe *.exe.core target.c effs.c
+
+c:	clean
+
+# Create dependencies
+%.d: %.c
+	@echo Making dependencies for $<.
+	@$(CC) -MM $(INCLUDE) $(CFLAGS) $< | sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' > $@
+
+
+-include $(DEPS)