Initial import
[olsrd.git] / Makefile.win32.in
1 OBJS =          src/build_msg.o \
2                 src/configfile.o \
3                 src/duplicate_set.o \
4                 src/generate_msg.o \
5                 src/hashing.o \
6                 src/hna_set.o \
7                 src/hysteresis.o \
8                 src/interfaces.o \
9                 src/ipc_frontend.o \
10                 src/link_set.o \
11                 src/local_hna_set.o \
12                 src/main.o \
13                 src/mantissa.o \
14                 src/mid_set.o \
15                 src/mpr.o \
16                 src/mpr_selector_set.o \
17                 src/neighbor_table.o \
18                 src/net.o \
19                 src/olsr.o \
20                 src/packet.o \
21                 src/parser.o \
22                 src/plugin.o \
23                 src/plugin_loader.o \
24                 src/process_package.o \
25                 src/process_routes.o \
26                 src/rebuild_packet.o \
27                 src/routing_table.o \
28                 src/scheduler.o \
29                 src/socket_parser.o \
30                 src/tc_set.o \
31                 src/two_hop_neighbor_table.o \
32                 src/win32/apm.o \
33                 src/win32/compat.o \
34                 src/win32/ifnet.o \
35                 src/win32/kernel_routes.o \
36                 src/win32/net.o \
37                 src/win32/tunnel.o
38
39 %.o:            %.c
40                 gcc -mno-cygwin -O2 -Wall -c -DWIN32 \
41                 -Isrc -Isrc/win32 -o$@ $<
42
43 olsrd:          $(OBJS)
44                 gcc -mno-cygwin -o olsrd.exe $(OBJS) -lws2_32 -liphlpapi
45
46 clean:
47                 rm -f olsrd.exe *.dll
48                 find . -name \*~ -exec rm -f {} \;
49                 find src -name \*.o -exec rm -f {} \;
50
51 mclean:         clean
52                 rm -f Makefile.win32