1999-04-13 23:05:08 +02:00
|
|
|
## Makefile for building the GLib test programs with Microsoft C
|
1999-04-24 15:52:51 +02:00
|
|
|
## Use: nmake -f makefile.msc check
|
1999-04-13 23:05:08 +02:00
|
|
|
|
|
|
|
################################################################
|
|
|
|
|
|
|
|
# Nothing much configurable below
|
|
|
|
|
1999-05-06 19:33:15 +02:00
|
|
|
# cl -? describes the options
|
1999-04-13 23:05:08 +02:00
|
|
|
CC = cl -G5 -GF -Ox -W3 -MD -nologo
|
|
|
|
|
1999-05-06 19:33:15 +02:00
|
|
|
# No general LDFLAGS needed
|
1999-04-13 23:05:08 +02:00
|
|
|
LDFLAGS = /link
|
|
|
|
|
1999-05-06 19:33:15 +02:00
|
|
|
GLIB_VER = @GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@
|
1999-04-13 23:05:08 +02:00
|
|
|
|
|
|
|
CFLAGS = -I.. -DHAVE_CONFIG_H
|
|
|
|
|
|
|
|
TESTS = \
|
|
|
|
array-test.exe \
|
|
|
|
date-test.exe \
|
|
|
|
dirname-test.exe\
|
|
|
|
hash-test.exe \
|
|
|
|
list-test.exe \
|
|
|
|
node-test.exe \
|
|
|
|
queue-test.exe \
|
|
|
|
rand-test.exe \
|
|
|
|
relation-test.exe\
|
|
|
|
slist-test.exe \
|
|
|
|
stack-test.exe \
|
|
|
|
string-test.exe \
|
|
|
|
strfunc-test.exe\
|
|
|
|
tree-test.exe \
|
|
|
|
type-test.exe
|
|
|
|
|
|
|
|
all : $(TESTS)
|
|
|
|
|
|
|
|
.c.exe :
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
$(CC) $(CFLAGS) -Fe$@ $< ..\glib-$(GLIB_VER).lib $(LDFLAGS) /subsystem:console
|
|
|
|
|
|
|
|
check: all
|
|
|
|
for %p in ($(TESTS)) do %p
|
|
|
|
|
|
|
|
clean:
|
|
|
|
del *.exe
|
|
|
|
del *.obj
|
|
|
|
del *.dll
|
|
|
|
del *.lib
|
|
|
|
del *.err
|
|
|
|
del *.map
|
|
|
|
del *.sym
|
|
|
|
del *.exp
|
|
|
|
del *.pdb
|