xref: /freebsd/contrib/unifdef/win32/Makefile.mingw (revision fb3ef04d2028110f06d68b09009f1f2ca0f4128e)
1# To build, run:
2# mingw32-make -f win32/Makefile.mingw
3
4all: unifdef.exe
5
6unifdef.exe: unifdef.c win32/win32.c FreeBSD/getopt.c FreeBSD/err.c
7	cd win32 && \
8	cp ../unifdef.c ../version.h . && \
9	$(CC) $(CFLAGS) $(LDFLAGS) -I. -o ../unifdef.exe unifdef.c \
10		win32.c ../FreeBSD/getopt.c ../FreeBSD/err.c && \
11	rm -f unifdef.c version.h
12
13test: unifdef.exe
14	scripts/runtests.sh tests
15