fix rules for optional plugins.
[galan.git] / src / Makefile.w32
blob35310626c0b4f3cde6702e07680c8639833c5209
1 # Handcrafted makefile for gAlan under win32.
3 # Note that this makefile relies on variables sent to it by the toplevel makefile.
5 objects = buffer.o clock.o comp.o control.o event.o galan.o gencomp.o generator.o \
6         gui.o msgbox.o objectstore.o plugin.o prefs.o sheet.o \
7         gtkknob.o gtkslider.o
9 all: galan.exe
11 galan.exe: main.o galan.dll
12         gcc -g -o galan.exe main.o galan.lib
14 galan.dll: $(objects) dllinit.o
15         dllwrap -g --export-all --output-def galan.def --output-lib galan.lib -o $@ $(objects) $(LIBS) dllinit.o
17 %.o: %.c
18         gcc $(CFLAGS) $(EXTRA_DEFS) -c $<
20 clean:
21         deltree /y $(objects) main.o galan.dll galan.def galan.lib