1 ## Makefile for building glib.dll and gmodule.dll with lcc
2 ## Use: make -f makefile.lcc
3 ## Note that testglib crashes when compiled with lcc...
6 TOUCH = copy/y makefile.lcc
17 gmodule\gmoduleconf.h \
23 $(INSTALL) glib.dll $(BIN)
24 $(INSTALL) gmodule.dll $(BIN)
48 glib.dll : $(glib_OBJECTS)
49 $(LD) -dll -o glib.dll $(glib_OBJECTS)
52 glibconfig.h: glibconfig.h.win32
53 copy glibconfig.h.win32 glibconfig.h
56 $(CC) $(CFLAGS) -DGLIB_COMPILATION -DG_LOG_DOMAIN=g_log_domain_glib $<
61 gmodule.dll : $(gmodule_OBJECTS)
62 $(LD) -dll -o gmodule.dll $(gmodule_OBJECTS) glib.lib
65 gmodule.obj : gmodule\gmodule.c gmodule\gmodule-win32.c
66 $(CC) $(CFLAGS) -Igmodule -DCOMPILING_GMODULE -DG_LIB_DOMAIN=g_log_domain_gmodule gmodule\gmodule.c
68 gmodule\gmoduleconf.h: gmodule\gmoduleconf.h.win32
69 copy gmodule\gmoduleconf.h.win32 gmodule\gmoduleconf.h
71 testglib.exe : glib.dll testglib.obj
72 $(LD) -o testglib.exe testglib.obj glib.lib
74 testglib.obj : testglib.c
75 $(CC) $(CFLAGS) testglib.c
77 testgmodule.exe : glib.dll gmodule.dll testgmodule.obj libgplugin_a.dll libgplugin_b.dll
78 $(LD) -o testgmodule.exe testgmodule.obj testgmodule.def glib.lib gmodule.lib
80 testgmodule.obj : gmodule\testgmodule.c
81 $(CC) $(CFLAGS) -Igmodule gmodule\testgmodule.c
83 libgplugin_a.dll : libgplugin_a.obj
84 $(LD) -dll -o libgplugin_a.dll libgplugin_a.obj glib.lib gmodule.lib
86 libgplugin_a.obj : gmodule\libgplugin_a.c
87 $(CC) $(CFLAGS) -Igmodule gmodule\libgplugin_a.c
89 libgplugin_b.dll : libgplugin_b.obj
90 $(LD) -dll -o libgplugin_b.dll libgplugin_b.obj /link glib.lib gmodule.lib
92 libgplugin_b.obj : gmodule\libgplugin_b.c
93 $(CC) $(CFLAGS) -Igmodule gmodule\libgplugin_b.c