2000-05-04 19:51:48 +00:00
|
|
|
## Makefile for building the GLib test programs with gcc on mingw or cygwin.
|
1999-04-24 13:52:51 +00:00
|
|
|
## Use: make -f makefile.cygwin check
|
|
|
|
|
1999-05-06 17:33:15 +00:00
|
|
|
OPTIMIZE = -g -O
|
|
|
|
|
2000-05-04 19:51:48 +00:00
|
|
|
GLIB_VER = @GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@
|
1999-04-24 13:52:51 +00:00
|
|
|
|
2000-05-04 19:51:48 +00:00
|
|
|
TOP = ../..
|
1999-04-24 13:52:51 +00:00
|
|
|
|
2000-05-04 19:51:48 +00:00
|
|
|
include $(TOP)/build/win32/make.mingw
|
1999-04-24 13:52:51 +00:00
|
|
|
|
2000-05-04 19:51:48 +00:00
|
|
|
################################################################
|
|
|
|
|
|
|
|
# Nothing much configurable below
|
1999-04-24 13:52:51 +00:00
|
|
|
|
2000-05-04 19:51:48 +00:00
|
|
|
INCLUDES = -I ..
|
|
|
|
DEFINES = -DHAVE_CONFIG_H
|
1999-04-24 13:52:51 +00:00
|
|
|
|
|
|
|
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 21:45:21 +00:00
|
|
|
string-test.exe \
|
1999-06-20 22:20:43 +00:00
|
|
|
thread-test.exe \
|
2000-05-01 21:13:02 +00:00
|
|
|
threadpool-test.exe\
|
1999-04-24 13:52:51 +00:00
|
|
|
tree-test.exe \
|
|
|
|
type-test.exe
|
|
|
|
|
2000-05-04 19:51:48 +00:00
|
|
|
all: $(TESTS)
|
1999-04-24 13:52:51 +00:00
|
|
|
|
|
|
|
.SUFFIXES: .c .exe
|
|
|
|
|
2000-05-04 19:51:48 +00:00
|
|
|
.c.exe:
|
1999-04-24 13:52:51 +00:00
|
|
|
$(CC) $(CFLAGS) -c $<
|
1999-07-21 19:18:03 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ $< -L.. -lglib-$(GLIB_VER) -lgthread-$(GLIB_VER)
|
1999-04-24 13:52:51 +00:00
|
|
|
|
|
|
|
check: all
|
|
|
|
@for P in $(TESTS) ; do echo $$P; ./$$P; done
|
|
|
|
|
2000-05-04 19:51:48 +00:00
|
|
|
clean::
|
1999-04-25 20:54:55 +00:00
|
|
|
-rm *.exe *.o
|