mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-09 12:25:48 +01:00
2000-05-04 Tor Lillqvist <tml@iki.fi> * makefile.cygwin.in * tests/makefile.cygwin.in: Include the common makefile snippet from ../build/win32. Maybe CVSROOT/modules should be changed so that the 'build' module is included within the glib module (and gtk+, and gimp, and maybe others later), in the same way as the 'macros' module is included in lots of GNOME CVS modules?
50 lines
907 B
Plaintext
50 lines
907 B
Plaintext
## Makefile for building the GLib test programs with gcc on mingw or cygwin.
|
|
## Use: make -f makefile.cygwin check
|
|
|
|
OPTIMIZE = -g -O
|
|
|
|
GLIB_VER = @GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@
|
|
|
|
TOP = ../..
|
|
|
|
include $(TOP)/build/win32/make.mingw
|
|
|
|
################################################################
|
|
|
|
# Nothing much configurable below
|
|
|
|
INCLUDES = -I ..
|
|
DEFINES = -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\
|
|
string-test.exe \
|
|
thread-test.exe \
|
|
threadpool-test.exe\
|
|
tree-test.exe \
|
|
type-test.exe
|
|
|
|
all: $(TESTS)
|
|
|
|
.SUFFIXES: .c .exe
|
|
|
|
.c.exe:
|
|
$(CC) $(CFLAGS) -c $<
|
|
$(CC) $(CFLAGS) -o $@ $< -L.. -lglib-$(GLIB_VER) -lgthread-$(GLIB_VER)
|
|
|
|
check: all
|
|
@for P in $(TESTS) ; do echo $$P; ./$$P; done
|
|
|
|
clean::
|
|
-rm *.exe *.o
|