source: src/router/mstp/Makefile @ 21157

Last change on this file since 21157 was 21157, checked in by BrainSlayer, 4 years ago

mstp update

File size: 1001 bytes
Line 
1MODE = devel
2version := 0.02
3
4DSOURCES = main.c epoll_loop.c brmon.c bridge_track.c libnetlink.c mstp.c \
5           packet.c netif_utils.c ctl_socket_server.c hmac_md5.c driver_deps.c
6
7DOBJECTS = $(DSOURCES:.c=.o)
8
9CTLSOURCES = ctl_main.c ctl_socket_client.c
10
11CTLOBJECTS = $(CTLSOURCES:.c=.o)
12
13CFLAGS += $(COPTS) -D_REENTRANT -D__LINUX__ -DVERSION=$(version) -I. \
14          -D_GNU_SOURCE -D__LIBC_HAS_VERSIONSORT__ -DNEED_PRINTF
15
16ifeq ($(MODE),devel)
17CFLAGS += -Werror
18endif
19
20all: mstpd mstpctl
21
22mstpd: $(DOBJECTS)
23        $(CC) -o $@ $(DOBJECTS)
24
25mstpctl: $(CTLOBJECTS)
26        $(CC) -o $@ $(CTLOBJECTS)
27
28-include .depend
29
30clean:
31        rm -f *.o *~ .depend.bak mstpd mstpctl
32
33install: all
34        -mkdir -pv $(INSTALLDIR)/sbin
35        install -m 755 mstpd $(INSTALLDIR)/sbin/mstpd
36        install -m 755 mstpctl $(INSTALLDIR)/sbin/mstpctl
37        install -m 755 bridge-stp $(INSTALLDIR)/sbin/bridge-stp
38
39romfs: all
40        $(ROMFSINST) /sbin/mstpd
41        $(ROMFSINST) /sbin/mstpctl
42        $(ROMFSINST) /sbin/bridge-stp
43
44#depend:
45#       makedepend -I. -Y *.c -f .depend
Note: See TracBrowser for help on using the repository browser.