Initial import
[olsrd.git] / front-end / Makefile.win32.in
1 GTKBASE =       ../../gtk
2
3 OBJS =          src/main.o \
4                 src/interface.o \
5                 src/callbacks.o \
6                 src/ipc.o \
7                 src/packet.o \
8                 src/nodes.o \
9                 src/routes.o \
10                 src/win32/compat.o
11
12 %.o:            %.c
13                 gcc -mno-cygwin -mms-bitfields -O2 -Wall -c -DWIN32 \
14                 -Isrc/win32 \
15                 -I$(GTKBASE)/include/gtk-2.0 \
16                 -I$(GTKBASE)/include/glib-2.0 \
17                 -I$(GTKBASE)/lib/gtk-2.0/include \
18                 -I$(GTKBASE)/lib/glib-2.0/include \
19                 -I$(GTKBASE)/include/pango-1.0 \
20                 -I$(GTKBASE)/include/atk-1.0 \
21                 -o$@ $<
22
23 olsrd-gui:      $(OBJS)
24                 gcc -mno-cygwin -o olsrd-gui.exe $(OBJS) \
25                 -lws2_32 \
26                 -L$(GTKBASE)/lib \
27                 -llibgtk-win32-2.0 \
28                 -llibgdk-win32-2.0 \
29                 -llibglib-2.0 \
30                 -llibgobject-2.0
31
32 clean:
33                 rm -f olsrd-gui.exe
34                 find . -name \*~ -exec rm -f {} \;
35                 find src -name \*.o -exec rm -f {} \;
36
37 mclean:         clean
38                 rm -f Makefile.win32