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