diff options
author | Tor Lillqvist <tml@iki.fi> | 2000-05-04 19:51:48 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2000-05-04 19:51:48 +0000 |
commit | 586d5b11a8765ac3b7ede3a60ddd7bafa36c2ba0 (patch) | |
tree | 170109987376616ee61b0e1864fabd62589e2f30 /tests | |
parent | c4f0c6fd9b673fe7c591f215aed0245335dee2d2 (diff) | |
download | glib-586d5b11a8765ac3b7ede3a60ddd7bafa36c2ba0.tar.gz |
makefile.cygwin.in Include the common makefile snippet from
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?
Diffstat (limited to 'tests')
-rw-r--r-- | tests/makefile.cygwin.in | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/tests/makefile.cygwin.in b/tests/makefile.cygwin.in index 90fc1165c..bfae54361 100644 --- a/tests/makefile.cygwin.in +++ b/tests/makefile.cygwin.in @@ -1,17 +1,20 @@ -## Makefile for building the GLib test programs with egcs on cygwin. +## 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@ -# Nothing much configurable below +TOP = ../.. -CC = gcc -mno-cygwin -mpentium -fnative-struct +include $(TOP)/build/win32/make.mingw -GLIB_VER = @GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@ +################################################################ + +# Nothing much configurable below -CFLAGS = $(OPTIMIZE) -I.. -DHAVE_CONFIG_H +INCLUDES = -I .. +DEFINES = -DHAVE_CONFIG_H TESTS = \ array-test.exe \ @@ -31,16 +34,16 @@ TESTS = \ tree-test.exe \ type-test.exe -all : $(TESTS) +all: $(TESTS) .SUFFIXES: .c .exe -.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: +clean:: -rm *.exe *.o |