makefile.msc.in 2.51 KB
Newer Older
1
## Makefile for building the GLib dlls with Microsoft C
2
## Use: nmake -f makefile.msc
3

Hans Breuer's avatar
Hans Breuer committed
4
TOP = ..\..
5

Tor Lillqvist's avatar
Update.  
Tor Lillqvist committed
6
!INCLUDE ..\build\win32\make.msc
7

8
################################################################
9

10
INCLUDES = -FImsvc_recommended_pragmas.h -I . -I ..
11
DEFINES = -DHAVE_CONFIG_H -DGLIB_COMPILATION -DG_LOG_DOMAIN=\"GLib\" -DG_ENABLE_DEBUG
12
DEPCFLAGS = -Zm400 $(INTL_CFLAGS) $(LIBICONV_CFLAGS) $(DIRENT_CFLAGS)
13

Tor Lillqvist's avatar
Tor Lillqvist committed
14
all :				\
Hans Breuer's avatar
Hans Breuer committed
15 16
	..\config.h		\
	..\glibconfig.h	\
Hans Breuer's avatar
Hans Breuer committed
17
	gnulib\gnulib.lib	\
18
	libglib-2.0-@LT_CURRENT_MINUS_AGE@.dll \
19
	glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@s.lib \
Tor Lillqvist's avatar
Tor Lillqvist committed
20
	gspawn-win32-helper.exe	\
21

Hans Breuer's avatar
Hans Breuer committed
22

Hans Breuer's avatar
Hans Breuer committed
23 24
gnulib\gnulib.lib :
	cd gnulib
Hans Breuer's avatar
Hans Breuer committed
25 26 27
	nmake -f makefile.msc
	cd ..

Tor Lillqvist's avatar
Tor Lillqvist committed
28 29 30
glib_OBJECTS =			\
	garray.obj		\
	gasyncqueue.obj		\
31
	gatomic.obj	\
Tor Lillqvist's avatar
Tor Lillqvist committed
32 33 34 35 36 37
	gbacktrace.obj		\
	gcache.obj		\
	gcompletion.obj		\
	gconvert.obj		\
	gdataset.obj		\
	gdate.obj		\
38
	gdir.obj	\
Tor Lillqvist's avatar
Tor Lillqvist committed
39 40 41 42 43 44 45 46
	gerror.obj		\
	gfileutils.obj		\
	ghash.obj		\
	ghook.obj		\
	giochannel.obj		\
	giowin32.obj		\
	glist.obj		\
	gmain.obj		\
Tor Lillqvist's avatar
Tor Lillqvist committed
47
	gmarkup.obj		\
Tor Lillqvist's avatar
Tor Lillqvist committed
48 49 50 51
	gmem.obj		\
	gmessages.obj		\
	gnode.obj		\
	gprimes.obj		\
Tor Lillqvist's avatar
Tor Lillqvist committed
52
	gqsort.obj		\
Tor Lillqvist's avatar
Tor Lillqvist committed
53
	gqueue.obj		\
Hans Breuer's avatar
updated  
Hans Breuer committed
54
	gpattern.obj	\
Hans Breuer's avatar
Hans Breuer committed
55
	gprintf.obj	\
Tor Lillqvist's avatar
Tor Lillqvist committed
56 57 58 59 60 61 62 63 64 65 66 67
	grand.obj		\
	grel.obj		\
	gscanner.obj		\
	gshell.obj		\
	gslist.obj		\
	gspawn-win32.obj	\
	gstrfuncs.obj		\
	gstring.obj		\
	gthread.obj		\
	gthreadpool.obj		\
	gtimer.obj		\
	gtree.obj		\
68
	gunibreak.obj		\
69
	gunicollate.obj		\
Tor Lillqvist's avatar
Tor Lillqvist committed
70 71 72 73
	gunidecomp.obj		\
	guniprop.obj		\
	gutf8.obj		\
	gutils.obj		\
74 75
	gwin32.obj		\
	localcharset.obj
76

Hans Breuer's avatar
Hans Breuer committed
77 78
..\glibconfig.h: ..\glibconfig.h.win32
	copy ..\glibconfig.h.win32 ..\glibconfig.h
79

Hans Breuer's avatar
Hans Breuer committed
80 81
..\config.h: ..\config.h.win32
	copy ..\config.h.win32 ..\config.h
82

83 84 85
localcharset.c : libcharset/localcharset.c
	copy libcharset\localcharset.c localcharset.c

86
################ glib
87

88
# create a static libary
89
# static library can well have the real version number in the name
Hans Breuer's avatar
Hans Breuer committed
90 91
glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@s.lib : $(glib_OBJECTS) gnulib\gnulib.lib
	lib /out:glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@s.lib $(glib_OBJECTS) gnulib\gnulib.lib
92

93
libglib-2.0-@LT_CURRENT_MINUS_AGE@.dll : $(glib_OBJECTS) gnulib\gnulib.lib glib.def
Hans Breuer's avatar
Hans Breuer committed
94
	$(CC) $(CFLAGS) -LD -Fe$@ $(glib_OBJECTS) $(LIBICONV_LIBS) $(INTL_LIBS) \
Hans Breuer's avatar
Hans Breuer committed
95
	gnulib\gnulib.lib $(DIRENT_LIBS) user32.lib advapi32.lib shell32.lib wsock32.lib $(LDFLAGS) /implib:glib-2.0.lib /def:glib.def
96

97 98
gspawn-win32-helper.exe : gspawn-win32-helper.c libglib-2.0-@LT_CURRENT_MINUS_AGE@.dll
	$(CC) $(CFLAGS) -Fe$@ -DG_LOG_DOMAIN=\"gspawn-win32-helper\" gspawn-win32-helper.c glib-2.0.lib $(LDFLAGS) /subsystem:windows user32.lib
99

100
################ other stuff
101

102
clean::
Hans Breuer's avatar
Hans Breuer committed
103
	del ..\config.h
104
	del ..\glibconfig.h
Hans Breuer's avatar
Hans Breuer committed
105