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 \
|
|
|
|
strfunc-test.exe\
|
1999-07-31 23:45:21 +02:00
|
|
|
string-test.exe \
|
1999-06-21 00:20:43 +02:00
|
|
|
thread-test.exe \
|
2000-05-01 23:13:02 +02:00
|
|
|
threadpool-test.exe\
|
1999-04-13 23:05:08 +02:00
|
|
|
tree-test.exe \
|
|
|
|
type-test.exe
|
|
|
|
|
|
|
|
all : $(TESTS)
|
|
|
|
|
|
|
|
.c.exe :
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
1999-06-21 00:20:43 +02:00
|
|
|
$(CC) $(CFLAGS) -Fe$@ $< ..\glib-$(GLIB_VER).lib ..\gthread-$(GLIB_VER).lib $(LDFLAGS) /subsystem:console
|
1999-04-13 23:05:08 +02:00
|
|
|
|
|
|
|
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
|