makefile.msc.in 2.42 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

Hans Breuer's avatar
Hans Breuer committed
10
INCLUDES = -I . -I ..
11
DEFINES = -DHAVE_CONFIG_H -DGLIB_COMPILATION -DG_LOG_DOMAIN=\"GLib\" -DG_ENABLE_DEBUG
12
DEPCFLAGS = $(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	\
17 18
	libglib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@-@LT_CURRENT_MINUS_AGE@.dll \
	glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@s.lib \
Tor Lillqvist's avatar
Tor Lillqvist committed
19
	gspawn-win32-helper.exe	\
20

Tor Lillqvist's avatar
Tor Lillqvist committed
21 22 23 24
glib_OBJECTS =			\
	garray.obj		\
	gasyncqueue.obj		\
	gbacktrace.obj		\
Hans Breuer's avatar
Hans Breuer committed
25
	gbsearcharray.obj	\
Tor Lillqvist's avatar
Tor Lillqvist committed
26 27 28 29 30
	gcache.obj		\
	gcompletion.obj		\
	gconvert.obj		\
	gdataset.obj		\
	gdate.obj		\
31
	gdir.obj	\
Tor Lillqvist's avatar
Tor Lillqvist committed
32 33 34 35 36 37 38 39
	gerror.obj		\
	gfileutils.obj		\
	ghash.obj		\
	ghook.obj		\
	giochannel.obj		\
	giowin32.obj		\
	glist.obj		\
	gmain.obj		\
Tor Lillqvist's avatar
Tor Lillqvist committed
40
	gmarkup.obj		\
Tor Lillqvist's avatar
Tor Lillqvist committed
41 42 43 44
	gmem.obj		\
	gmessages.obj		\
	gnode.obj		\
	gprimes.obj		\
Tor Lillqvist's avatar
Tor Lillqvist committed
45
	gqsort.obj		\
Tor Lillqvist's avatar
Tor Lillqvist committed
46
	gqueue.obj		\
Hans Breuer's avatar
updated  
Hans Breuer committed
47
	gpattern.obj	\
Tor Lillqvist's avatar
Tor Lillqvist committed
48 49 50 51 52 53 54 55 56 57 58 59
	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		\
60
	gunibreak.obj		\
61
	gunicollate.obj		\
Tor Lillqvist's avatar
Tor Lillqvist committed
62 63 64 65
	gunidecomp.obj		\
	guniprop.obj		\
	gutf8.obj		\
	gutils.obj		\
66 67
	gwin32.obj		\
	localcharset.obj
68

Hans Breuer's avatar
Hans Breuer committed
69 70
..\glibconfig.h: ..\glibconfig.h.win32
	copy ..\glibconfig.h.win32 ..\glibconfig.h
71

Hans Breuer's avatar
Hans Breuer committed
72 73
..\config.h: ..\config.h.win32
	copy ..\config.h.win32 ..\config.h
74

75 76 77
localcharset.c : libcharset/localcharset.c
	copy libcharset\localcharset.c localcharset.c

78
################ glib
79

80
# create a static libary
81 82
glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@s.lib : $(glib_OBJECTS)
	lib /out:glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@s.lib $(glib_OBJECTS)
83

84
libglib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@-@LT_CURRENT_MINUS_AGE@.dll : $(glib_OBJECTS) glib.def
85
	$(CC) $(CFLAGS) -LD -Fe$@ $(glib_OBJECTS) $(LIBICONV_LIBS) $(INTL_LIBS) $(DIRENT_LIBS) user32.lib advapi32.lib wsock32.lib $(LDFLAGS) /implib:glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib /def:glib.def
86

87 88
gspawn-win32-helper.exe : gspawn-win32-helper.c libglib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@-@LT_CURRENT_MINUS_AGE@.dll
	$(CC) $(CFLAGS) -Fe$@ -DG_LOG_DOMAIN=\"gspawn-win32-helper\" gspawn-win32-helper.c glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib $(LDFLAGS) /subsystem:windows user32.lib
89

90
################ other stuff
91

92
clean::
Hans Breuer's avatar
Hans Breuer committed
93
	del ..\config.h
94
	del ..\glibconfig.h