mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
45adcf12c1
2000-07-15 Tor Lillqvist <tml@iki.fi> * Makefile.am (SUBDIRS): Include the "build" module in GLib, too, to make it more self-contained. If your CVS client doesn't automatically get it, do a cvs get build in glib. * */makefile.mingw.in: Include make.mingw from build in the glib source directory.
53 lines
1.1 KiB
Plaintext
53 lines
1.1 KiB
Plaintext
## Makefile for building the GLib test programs with gcc for mingw.
|
|
## Use: make -f makefile.mingw check
|
|
|
|
GLIB_VER = @GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@
|
|
|
|
TOP = ../..
|
|
|
|
include ../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)
|
|
|
|
makefile.mingw: makefile.mingw.in
|
|
sed -e 's,@GLIB[_]MAJOR_VERSION@,@GLIB_MAJOR_VERSION@,' \
|
|
-e 's,@GLIB[_]MINOR_VERSION@,@GLIB_MINOR_VERSION@,' <$< >$@
|
|
|
|
.SUFFIXES: .c .exe
|
|
|
|
.c.exe:
|
|
$(CC) $(CFLAGS) -c $<
|
|
$(CC) $(CFLAGS) -o $@ $< -L .. -lglib-$(GLIB_VER) -L ../gthread -lgthread-$(GLIB_VER)
|
|
|
|
check: all
|
|
@for P in $(TESTS) ; do echo $$P; ./$$P; done
|
|
@echo All tests successful.
|
|
|
|
clean::
|
|
-rm *.exe *.o
|