mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 23:46:15 +01:00
606033cffa
2001-07-20 Hans Breuer <hans@breuer.org> * makefile.msc.in : reflect glib move
36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
## Makefile for building the gthread dll with Microsoft C
|
|
## Use: nmake -f makefile.msc install
|
|
|
|
GLIB_VER = @GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@
|
|
|
|
TOP = ..\..
|
|
|
|
!INCLUDE $(TOP)\build\win32\make.msc
|
|
|
|
# Possibly override GLib version in build\win32\module.defs
|
|
GLIB_VER = @GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@
|
|
|
|
################################################################
|
|
|
|
# Nothing much configurable below
|
|
|
|
INCLUDES = -I .. -I . -I ..\glib
|
|
DEFINES = -DHAVE_CONFIG_H -DG_LOG_DOMAIN=\"GThread\"
|
|
# DEPCFLAGS = $(PTHREAD_CFLAGS)
|
|
# DEPCLIBS = $(PTHREAD_LIBS)
|
|
all : \
|
|
gthread-$(GLIB_VER).dll
|
|
|
|
gthread_OBJECTS = \
|
|
gthread-impl.obj
|
|
|
|
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 >$@
|
|
|
|
gthread-impl.obj : gthread-impl.c gthread-win32.c
|
|
$(CC) -c $(CFLAGS) gthread-impl.c
|
|
|
|
gthread-$(GLIB_VER).dll : $(gthread_OBJECTS) gthread.def
|
|
$(CC) $(CFLAGS) -LD -Fegthread-$(GLIB_VER).dll $(gthread_OBJECTS) ..\glib\glib-$(GLIB_VER).lib $(DEPCLIBS) $(LDFLAGS) /def:gthread.def
|