| OLD | NEW |
| 1 # Makefile for libcryptomodule.a | 1 # Makefile for libcryptomodule.a |
| 2 # | 2 # |
| 3 # David A. McGrew | 3 # David A. McGrew |
| 4 # Cisco Systems, Inc. | 4 # Cisco Systems, Inc. |
| 5 | 5 |
| 6 srcdir = @srcdir@ | 6 srcdir = @srcdir@ |
| 7 top_srcdir = @top_srcdir@ | 7 top_srcdir = @top_srcdir@ |
| 8 top_builddir = @top_builddir@ | 8 top_builddir = @top_builddir@ |
| 9 VPATH = @srcdir@ | 9 VPATH = @srcdir@ |
| 10 | 10 |
| 11 CC = @CC@ | 11 CC = @CC@ |
| 12 INCDIR» = -Iinclude -I$(srcdir)/include | 12 INCDIR» = -Iinclude -I$(srcdir)/include -I$(top_srcdir)/include |
| 13 DEFS = @DEFS@ | 13 DEFS = @DEFS@ |
| 14 CPPFLAGS= @CPPFLAGS@ | 14 CPPFLAGS= @CPPFLAGS@ |
| 15 CFLAGS = @CFLAGS@ | 15 CFLAGS = @CFLAGS@ |
| 16 LIBS = @LIBS@ | 16 LIBS = @LIBS@ |
| 17 LDFLAGS = @LDFLAGS@ -L. -L.. | 17 LDFLAGS = @LDFLAGS@ -L. -L.. |
| 18 COMPILE = $(CC) $(DEFS) $(INCDIR) $(CPPFLAGS) $(CFLAGS) | 18 COMPILE = $(CC) $(DEFS) $(INCDIR) $(CPPFLAGS) $(CFLAGS) |
| 19 CRYPTOLIB = -lsrtp | 19 CRYPTOLIB = -lsrtp |
| 20 | 20 |
| 21 RANLIB = @RANLIB@ | 21 RANLIB = @RANLIB@ |
| 22 | 22 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 test/kernel_driver$(EXE) -v >/dev/null | 75 test/kernel_driver$(EXE) -v >/dev/null |
| 76 test/rand_gen$(EXE) -n 256 >/dev/null | 76 test/rand_gen$(EXE) -n 256 >/dev/null |
| 77 @echo "crypto test applications passed." | 77 @echo "crypto test applications passed." |
| 78 | 78 |
| 79 | 79 |
| 80 # the rule for making object files and test apps | 80 # the rule for making object files and test apps |
| 81 | 81 |
| 82 %.o: %.c | 82 %.o: %.c |
| 83 $(COMPILE) -c $< -o $@ | 83 $(COMPILE) -c $< -o $@ |
| 84 | 84 |
| 85 %$(EXE): %.c | 85 %$(EXE): %.c ../test/getopt_s.c |
| 86 » $(COMPILE) $(LDFLAGS) $< -o $@ $(CRYPTOLIB) $(LIBS) | 86 » $(COMPILE) $(LDFLAGS) $< ../test/getopt_s.c -o $@ $(CRYPTOLIB) $(LIBS) |
| 87 | 87 |
| 88 all: $(testapp) | 88 all: $(testapp) |
| 89 | 89 |
| 90 # housekeeping functions | 90 # housekeeping functions |
| 91 | 91 |
| 92 clean: | 92 clean: |
| 93 rm -f libcryptomodule.a | 93 rm -f libcryptomodule.a |
| 94 rm -f $(testapp) *.o */*.o | 94 rm -f $(testapp) *.o */*.o |
| 95 for a in * .* */*; do if [ -f "$$a~" ] ; then rm $$a~; fi; done; | 95 for a in * .* */*; do if [ -f "$$a~" ] ; then rm $$a~; fi; done; |
| 96 rm -f `find . -name "*.[ch]~*~"` | 96 rm -f `find . -name "*.[ch]~*~"` |
| 97 rm -rf latex | 97 rm -rf latex |
| 98 | 98 |
| 99 superclean: clean | 99 superclean: clean |
| 100 rm -f *core TAGS ktrace.out | 100 rm -f *core TAGS ktrace.out |
| 101 | 101 |
| 102 | 102 |
| 103 # the target 'package' builds a compressed tar archive of the source code | 103 # the target 'package' builds a compressed tar archive of the source code |
| 104 | 104 |
| 105 distname = crypto-$(shell cat VERSION) | 105 distname = crypto-$(shell cat VERSION) |
| 106 | 106 |
| 107 package: superclean | 107 package: superclean |
| 108 cd ..; tar cvzf $(distname).tgz crypto/ | 108 cd ..; tar cvzf $(distname).tgz crypto/ |
| 109 | 109 |
| 110 | 110 |
| 111 # EOF | 111 # EOF |
| OLD | NEW |