d32f5be07ab4712eb86b15d4596196b9f9122422
[olsrd.git] / src / olsr_switch / Makefile
1 TOPDIR=../..
2 include $(TOPDIR)/Makefile.inc
3
4 ifeq ($(OS), win32)
5 BINNAME = olsr_switch.exe
6 OBJS += ../win32/compat.o
7 else
8 BINNAME = olsr_switch
9 endif
10
11 default_target: $(TOPDIR)/$(BINNAME)
12
13 $(TOPDIR)/$(BINNAME):   $(OBJS)
14         @echo "[LD] $@"
15         @$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
16
17 ohs_cmd.o: CFLAGS += -Wno-cast-qual -DNO_OLDNAMES
18
19 clean:
20         rm -f *.[od]
21         rm -f *~
22         rm -f $(TOPDIR)/$(BINNAME)