forked from osmocom/wireshark
6616a3770c
files. Do this with GENERATED_HEADER_FILES, GENERATED_C_FILES, and GENERATED_FILES macros in Makefile.common files, along the lines of what wiretap/Makefile.common has. Clean up "*~" files with "make clean" rather than only "make distclean" in some additional places. Add "maintainer-clean" rules to the Makefile.nmake files, paralelling the ones in the automake-generated Makefile.in files, using the GENERATED_FILES macros from Makefile.common files. In some cases, move the cleanup of files from "make distclean" to "make maintainer-clean", and in other cases, put in a comment indicating why we're not doing that (because some files that are distributed in the source tarballs, namely Flex output, were built with a UN*X Flex and won't compile on Windows, so we get rid of them with "make distclean" so you can clean up stuff that *has* to be re-generated for Windows). Clean up some *CLEANFILES definitions - get rid of ones that no longer apply as files were moved or that add to the definition a name that's already there. svn path=/trunk/; revision=13402
41 lines
790 B
Makefile
41 lines
790 B
Makefile
## Makefile for building ethereal.exe with Microsoft C and nmake
|
|
## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
|
|
#
|
|
# $Id$
|
|
|
|
include ..\..\config.nmake
|
|
|
|
############### no need to modify below this line #########
|
|
|
|
CFLAGS=-DHAVE_CONFIG_H /I. /I.. /I../.. $(GLIB_CFLAGS) \
|
|
$(PCRE_CFLAGS) /I$(PCAP_DIR)\include -D_U_="" $(LOCAL_CFLAGS)
|
|
|
|
CVARSDLL=-DWIN32 -DNULL=0 -D_MT -D_DLL
|
|
|
|
.c.obj::
|
|
$(CC) $(CVARSDLL) $(CFLAGS) -Fd.\ -c $<
|
|
|
|
|
|
OBJECTS = \
|
|
ftypes.obj \
|
|
ftype-bytes.obj \
|
|
ftype-double.obj \
|
|
ftype-integer.obj \
|
|
ftype-ipv4.obj \
|
|
ftype-none.obj \
|
|
ftype-pcre.obj \
|
|
ftype-string.obj \
|
|
ftype-time.obj \
|
|
ftype-tvbuff.obj
|
|
|
|
|
|
ftypes.lib : $(OBJECTS)
|
|
link /lib /out:ftypes.lib $(OBJECTS)
|
|
|
|
clean:
|
|
rm -f $(OBJECTS) ftypes.lib $(PDB_FILE)
|
|
|
|
distclean: clean
|
|
|
|
maintainer-clean: distclean
|