mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-05 08:56:16 +01:00
18190575f8
2001-09-26 Tor Lillqvist <tml@iki.fi> * configure.in: Retract my change earlier today. Don't preset autoconf variables in a try to match both mingw and MSVC. Instead, he who packages a prebuilt GLib developer distribution for Win32 runs configure twice: once for mingw, once for MSVC, and then uses diff -D on the glibconfig.h files to generate a suitably ifdeffed glibconfig.h for distribution that suits both compilers. (Ditto for config.h, although that file wouldn't be distributed in a developer package, but in a source package for Win32 users who want to build GLib but can't use configure.) * glibconfig.h.win32.in * config.h.win32.in: Generated by using diff -D as described above. * tests/makefile.mingw.in (.c.exe): Correct name of gthread (import) library. gthread: 2001-09-26 Tor Lillqvist <tml@iki.fi> * makefile.mingw.in: Fix couple of typos. * gthread.def: Add g_thread_init_with_errorcheck_mutexes.
70 lines
2.0 KiB
Plaintext
70 lines
2.0 KiB
Plaintext
## Makefile for building the GLib test programs with gcc for mingw.
|
|
## Use: make -f makefile.mingw check
|
|
|
|
TOP = ../..
|
|
|
|
include ../build/win32/make.mingw
|
|
|
|
################################################################
|
|
|
|
# Nothing much configurable below
|
|
|
|
INCLUDES = -I .. -I ../glib -I ../gmodule
|
|
DEFINES = -DHAVE_CONFIG_H
|
|
|
|
TESTS = \
|
|
testglib.exe \
|
|
testgdate.exe \
|
|
testgdateparser.exe \
|
|
array-test.exe \
|
|
date-test.exe \
|
|
dirname-test.exe\
|
|
gio-test.exe \
|
|
hash-test.exe \
|
|
list-test.exe \
|
|
mainloop-test.exe\
|
|
markup-test.exe \
|
|
module-test.exe \
|
|
node-test.exe \
|
|
queue-test.exe \
|
|
rand-test.exe \
|
|
relation-test.exe\
|
|
shell-test.exe \
|
|
slist-test.exe \
|
|
spawn-test.exe \
|
|
strfunc-test.exe\
|
|
string-test.exe \
|
|
thread-test.exe \
|
|
threadpool-test.exe\
|
|
tree-test.exe \
|
|
type-test.exe \
|
|
unicode-encoding.exe \
|
|
|
|
DLLS = \
|
|
libmoduletestplugin_a.dll \
|
|
libmoduletestplugin_b.dll
|
|
|
|
all: $(TESTS) $(DLLS)
|
|
|
|
.SUFFIXES: .c .i .exe
|
|
|
|
.c.exe:
|
|
$(CC) $(CFLAGS) -o $@ $< -L ../gthread -lgthread-1.3 -L ../glib -lglib-1.3
|
|
|
|
module-test.exe : module-test.o
|
|
$(CC) $(CFLAGS) -Wl,--base-file,module-test.base -o module-test.exe module-test.o -L ../glib -lglib-1.3 -L ../gmodule -lgmodule-1.3 $(LDFLAGS)
|
|
$(DLLTOOL) --base-file module-test.base --output-exp module-test.exp module-test.o
|
|
$(CC) $(CFLAGS) -Wl,--base-file,module-test.base,module-test.exp -o module-test.exe module-test.o -L ../glib -lglib-1.3 -L ../gmodule -lgmodule-1.3 $(LDFLAGS)
|
|
$(DLLTOOL) --base-file module-test.base --output-exp module-test.exp module-test.o
|
|
$(CC) $(CFLAGS) -Wl,module-test.exp -o module-test.exe module-test.o -L ../glib -lglib-1.3 -L ../gmodule -lgmodule-1.3 $(LDFLAGS)
|
|
|
|
libmoduletestplugin_a.dll : libmoduletestplugin_a.o
|
|
$(BUILD_DLL) libmoduletestplugin_a - libmoduletestplugin_a.o -L ../glib -lglib-1.3 -L ../gmodule -lgmodule-1.3
|
|
|
|
libmoduletestplugin_b.dll : libmoduletestplugin_b.o
|
|
$(BUILD_DLL) libmoduletestplugin_b - libmoduletestplugin_b.o -L ../glib -lglib-1.3 -L ../gmodule -lgmodule-1.3
|
|
|
|
check: all
|
|
@for P in $(TESTS) ; do echo $$P; ./$$P; done
|
|
@echo All tests successful.
|