diff options
author | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-05-08 07:51:38 +0000 |
---|---|---|
committer | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-05-08 07:51:38 +0000 |
commit | d89a13a276d0bc8faaba42aabc8e53e8de071b87 (patch) | |
tree | b52e544cb4575706ca17b40840081545f20ec255 /xpp/utils/Makefile | |
parent | 2dd60aaf18e98b0e9d3c06bd9dce5f1128fa55ad (diff) |
xpp driver release 1.1.0 (second part of commit from r1021)
* Please avoid setting the keyword Id on the firmware files (*.hex)
to preserve the original versioning comment.
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1023 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'xpp/utils/Makefile')
-rw-r--r-- | xpp/utils/Makefile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/xpp/utils/Makefile b/xpp/utils/Makefile new file mode 100644 index 0000000..021647c --- /dev/null +++ b/xpp/utils/Makefile @@ -0,0 +1,37 @@ +TEST_CPP = 1 +PEDANTIC = -ansi -pedantic + +CC = gcc +RANLIB = ranlib + +ifeq (1,${TEST_CPP}) +CXXFLAGS = $(CFLAGS) +EXTRA_CFLAGS = -x c++ +EXTRA_LIBS = -lstdc++ +LDLIBS += $(EXTRA_LIBS) +endif + +CFLAGS = -g -Wall $(EXTRA_CFLAGS) + +TARGETS = libhexfile.a fpga_load test_parse + +all: $(TARGETS) + +libhexfile.a: hexfile.o + $(AR) cru $@ $^ + $(RANLIB) $@ + +fpga_load: fpga_load.o libhexfile.a + $(CC) -L. -o $@ $@.o $(EXTRA_LIBS) -lhexfile -lusb + +hexfile.o: hexfile.c hexfile.h + $(CC) $(CFLAGS) $(PEDANTIC) -c $*.c + +test_parse.o: test_parse.c hexfile.h + $(CC) $(CFLAGS) $(PEDANTIC) -c $*.c + +test_parse: test_parse.o libhexfile.a + $(CC) -L. -o $@ $@.o $(EXTRA_LIBS) -lhexfile -lusb + +clean: + $(RM) *.o $(TARGETS) |