missing commit in generator.h
[galan.git] / Makefile.w32
blob687115eed6739d280a9a389d8b1ea647aa395cb6
1 # Handcrafted makefile for gAlan under win32.
3 ###########################################################################
4 # Configuration
5 ###########################################################################
7 # Customise these directory settings for your installation. See
8 # README.w32 for more information.
9 DEST_DIR = C:\\PROGRA~1\\gAlan
10 DEST_DIR_C = \"C:\\\\PROGRA~1\\\\gAlan\"
11 GTK_BASE_DIR = C:\\devel\\gtk\\src
12 LIBAUDIOFILE_DIR = C:\\devel\\audiofile-0.1.7\\libaudiofile
14 # You may need to change these, if you installed the glib/gtk+ development
15 # packages somewhere else. If you don't have/want libaudiofile, you'll also
16 # need to alter plugins/Makefile.w32 to *not* compile pcm_out.c, and remove
17 # the -DHAVE_AUDIOFILE_H defined from EXTRA_DEFS below.
18 INCLUDES = \
19         -I../include -I.. \
20         -I$(GTK_BASE_DIR)/glib \
21         -I$(GTK_BASE_DIR)/glib/gmodule \
22         -I$(GTK_BASE_DIR)/gtk+/gdk/win32 \
23         -I$(GTK_BASE_DIR)/gtk+ \
24         -I$(LIBAUDIOFILE_DIR)
25 LIBDIRS = \
26         -L$(GTK_BASE_DIR)/glib \
27         -L$(GTK_BASE_DIR)/gtk+/gdk/win32 \
28         -L$(GTK_BASE_DIR)/gtk+/gtk \
29         -L$(LIBAUDIOFILE_DIR)
31 # These should be ok - unless the version numbers on glib etc have changed.
32 # Check to make sure they're appropriate for your libraries.
33 LIBS = $(LIBDIRS) -lglib-1.3 -lgmodule-1.3 -lgdk-1.3 -lgtk-1.3
35 # You shouldn't need to change these... but feel free, if you like.
36 CFLAGS = -g -O2 -Wall $(INCLUDES) -fnative-struct
37 EXTRA_DEFS = -DSITE_PKGLIB_DIR=$(DEST_DIR_C) -DHAVE_AUDIOFILE_H=1
39 # List of variables to export to submakes
40 export DEST_DIR GTK_BASE_DIR
41 export INCLUDES LIBS
42 export CFLAGS EXTRA_DEFS
44 ###########################################################################
45 # Targets
46 ###########################################################################
48 all:    libaudiofile
49         make -C src -f Makefile.w32 all
50         make -C plugins -f Makefile.w32 all
52 libaudiofile:
53         copy src\\dllinit.c $(LIBAUDIOFILE_DIR)
54         copy Makefile.libaudiofile $(LIBAUDIOFILE_DIR)\\Makefile.w32
55         copy config.h.libaudiofile $(LIBAUDIOFILE_DIR)\\config.h
56         make -C $(LIBAUDIOFILE_DIR) -f $(LIBAUDIOFILE_DIR)\\Makefile.w32
58 setup:
59         copy config.h.w32 config.h
61 install: all
62         mkdir $(DEST_DIR)
63         copy src\\galan.exe $(DEST_DIR)
64         copy src\\galan.dll $(DEST_DIR)
65         mkdir $(DEST_DIR)\\plugins
66         copy plugins\\*.dll $(DEST_DIR)\\plugins
67         mkdir $(DEST_DIR)\\pixmaps
68         copy pixmaps\\*.xpm $(DEST_DIR)\\pixmaps
69         xcopy /s/e/i doc $(DEST_DIR)\\doc
71 install-dll: install
72         copy "$(GTK_BASE_DIR)\\glib\\glib-1.3.dll" $(DEST_DIR)
73         copy "$(GTK_BASE_DIR)\\glib\\gmodule-1.3.dll" $(DEST_DIR)
74         copy "$(GTK_BASE_DIR)\\glib\\gthread-1.3.dll" $(DEST_DIR)
75         copy "$(GTK_BASE_DIR)\\gtk+\\gdk\\win32\\gdk-1.3.dll" $(DEST_DIR)
76         copy "$(GTK_BASE_DIR)\\gtk+\\gtk\\gtk-1.3.dll" $(DEST_DIR)
77         copy "$(GTK_BASE_DIR)\\intl\\gnu-intl.dll" $(DEST_DIR)
78         copy "$(LIBAUDIOFILE_DIR)\\libaudiofile.dll" $(DEST_DIR)
80 install-strip: install
81         strip $(DEST_DIR)\\galan.exe
82         strip $(DEST_DIR)\\galan.dll
84 install-dll-strip: install-dll install-strip
85         strip $(DEST_DIR)\\*.dll
87 clean:
88         make -C src -f Makefile.w32 clean
89         make -C plugins -f Makefile.w32 clean