GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

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

Hans Breuer's avatar
updated  
Hans Breuer committed
6
!INCLUDE $(TOP)\build\win32\make.msc
7

8 9
# Possibly override GLib version in build\win32\module.defs
GLIB_VER = @GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@
10

11
################################################################
12

13
# Nothing much configurable below
14

Hans Breuer's avatar
Hans Breuer committed
15
INCLUDES = -I . -I ..
16
DEFINES = -DHAVE_CONFIG_H -DGLIB_COMPILATION -DG_LOG_DOMAIN=g_log_domain_glib -DG_ENABLE_DEBUG
17
DEPCFLAGS = $(INTL_CFLAGS) $(LIBICONV_CFLAGS)
18

Tor Lillqvist's avatar
Tor Lillqvist committed
19
all :				\
Hans Breuer's avatar
Hans Breuer committed
20 21 22
	..\config.h		\
	..\glibconfig.h	\
	glib-$(GLIB_VER).dll \
23
	glib-$(GLIB_VER)s.lib \
Tor Lillqvist's avatar
Tor Lillqvist committed
24
	gspawn-win32-helper.exe	\
25

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

Hans Breuer's avatar
Hans Breuer committed
71 72
..\glibconfig.h: ..\glibconfig.h.win32
	copy ..\glibconfig.h.win32 ..\glibconfig.h
73

Hans Breuer's avatar
Hans Breuer committed
74 75
..\config.h: ..\config.h.win32
	copy ..\config.h.win32 ..\config.h
76

77 78 79
makefile.msc: makefile.msc.in
	$(SED) -e s,@GLIB[_]MAJOR_VERSION@,@GLIB_MAJOR_VERSION@, \
	       -e s,@GLIB[_]MINOR_VERSION@,@GLIB_MINOR_VERSION@, <makefile.msc.in >$@
80

81
################ glib
82

83 84 85 86
# create a static libary
glib-$(GLIB_VER)s.lib : $(glib_OBJECTS)
	lib /out:glib-$(GLIB_VER)s.lib $(glib_OBJECTS)

87
glib-$(GLIB_VER).dll : $(glib_OBJECTS) glib.def
Hans Breuer's avatar
Hans Breuer committed
88
	$(CC) $(CFLAGS) -LD -Feglib-$(GLIB_VER).dll $(glib_OBJECTS) $(LIBICONV_LIBS) $(INTL_LIBS) user32.lib advapi32.lib wsock32.lib $(LDFLAGS) /def:glib.def
89

Tor Lillqvist's avatar
Tor Lillqvist committed
90
gspawn-win32-helper.exe : gspawn-win32-helper.c glib-$(GLIB_VER).dll
91
	$(CC) $(CFLAGS) -Fe$@ -DG_LOG_DOMAIN=\"gspawn-win32-helper\" gspawn-win32-helper.c glib-$(GLIB_VER).lib $(LDFLAGS) /subsystem:windows user32.lib
92

93
################ other stuff
94

95
clean::
Hans Breuer's avatar
Hans Breuer committed
96
	del ..\config.h
97
	del glibconfig.h