Special-case flag value of 0. Instead of returning the first random
[platform/upstream/glib.git] / gmodule / makefile.mingw.in
1 ## Makefile for building the gmodule DLL with gcc for mingw. The build
2 ## uses tools running on cygwin, however.
3
4 ## Use: make -f makefile.mingw
5
6 TOP = ../..
7
8 include ../build/win32/make.mingw
9
10 ################################################################
11
12 # Nothing much configurable below
13
14 INCLUDES = -I .. -I ../glib -I .
15 DEFINES = -DHAVE_CONFIG_H -DG_LOG_DOMAIN=\"GModule\" -DG_ENABLE_DEBUG
16
17 all : \
18         gmoduleconf.h \
19         libgmodule-2.0.a
20
21 gmodule_OBJECTS = \
22         gmodule.o
23
24 gmoduleconf.h: gmoduleconf.h.win32
25         cp $< $@
26
27 ################ The gmodule DLL
28
29 libgmodule-2.0.a : $(gmodule_OBJECTS) gmodule.def gmodule-2.0.rc
30         $(BUILD_DLL) gmodule-2.0 @LT_CURRENT@:@LT_REVISION@:@LT_AGE@ $(CFLAGS) gmodule.def $(gmodule_OBJECTS) -L ../glib -lglib-2.0
31
32 gmodule-2.0.rc : gmodule.rc
33         cp $< $@
34
35 ################ Other stuff
36
37 clean::
38         -rm gmoduleconf.h