dect
/
libpcap
Archived
13
0
Fork 0

From Gisle Vanem: produce a version.h from VERSION.

Add an RCS ID.

Remove CRs - they get in the way of applying patches on UN*X, and
presumably either they aren't required on DOS or DOS CVS inserts them
when the file is checked out.
This commit is contained in:
guy 2004-12-19 19:41:06 +00:00
parent 14e0f5d9f7
commit 8163c9ce4d
1 changed files with 152 additions and 147 deletions

View File

@ -6,17 +6,18 @@
# #
# c:\net\pcap> make -f msdos/makefile.dj # c:\net\pcap> make -f msdos/makefile.dj
# #
# @(#) $Header: /tcpdump/master/libpcap/msdos/makefile.dj,v 1.2 2004-12-19 19:41:06 guy Exp $ (LBL)
VPATH = missing msdos VPATH = missing msdos
PREREQUISITES = scanner.c grammar.c tokdefs.h msdos/pkt_stub.inc PREREQUISITES = scanner.c grammar.c tokdefs.h version.h msdos/pkt_stub.inc
include msdos/common.dj include msdos/common.dj
DRIVER_DIR = ./msdos/pm_drvr DRIVER_DIR = ./msdos/pm_drvr
CFLAGS += -DDEBUG -DNDIS_DEBUG -DHAVE_LIMITS_H -DHAVE_STRERROR \ CFLAGS += -DDEBUG -DNDIS_DEBUG -DHAVE_LIMITS_H -DHAVE_STRERROR \
-D_U_='__attribute__((unused))' -D_U_='__attribute__((unused))' -DHAVE_VERSION_H
# CFLAGS += -Dyylval=pcap_lval -DBDEBUG -DNDEBUG # CFLAGS += -Dyylval=pcap_lval -DBDEBUG -DNDEBUG
@ -49,7 +50,7 @@ $(PM_OBJECTS):
$(MAKE) -f Makefile.dj -C $(DRIVER_DIR) $(notdir $@) $(MAKE) -f Makefile.dj -C $(DRIVER_DIR) $(notdir $@)
endif endif
libpcap.a: $(OBJECTS) $(PM_OBJECTS) libpcap.a: version.h $(OBJECTS) $(PM_OBJECTS)
rm -f $@ rm -f $@
ar rs $@ $^ ar rs $@ $^
@ -64,6 +65,10 @@ grammar.c tokdefs.h: grammar.y
mv -f y_tab.c grammar.c mv -f y_tab.c grammar.c
mv -f y_tab.h tokdefs.h mv -f y_tab.h tokdefs.h
version.h: ./VERSION
@echo '/* Generated from VERSION. Do not edit */' > $@
sed -e 's/.*/static char pcap_version_string[] = "libpcap (&)";/' ./VERSION >> $@
scanner.c: scanner.l scanner.c: scanner.l
$(LEX) -Ppcap_ -7 -t $^ > $@ $(LEX) -Ppcap_ -7 -t $^ > $@
@echo @echo