]> git.ipfire.org Git - people/ms/mstpd.git/blame - Makefile
Initial import
[people/ms/mstpd.git] / Makefile
CommitLineData
1e6d2d09
VD
1version := 0.01
2
3DSOURCES = main.c epoll_loop.c brmon.c bridge_track.c libnetlink.c mstp.c \
4 packet.c netif_utils.c ctl_socket_server.c hmac_md5.c
5
6DOBJECTS = $(DSOURCES:.c=.o)
7
8CTLSOURCES = ctl_main.c ctl_socket_client.c
9
10CTLOBJECTS = $(CTLSOURCES:.c=.o)
11
12CFLAGS += -Werror -O2 -D_REENTRANT -D__LINUX__ -DVERSION=$(version) -I.
13
14all: mstpd mstpctl
15
16mstpd: $(DOBJECTS)
17 $(CC) -o $@ $(DOBJECTS)
18
19mstpctl: $(CTLOBJECTS)
20 $(CC) -o $@ $(CTLOBJECTS)
21
22-include .depend
23
24clean:
25 rm -f *.o *~ .depend.bak mstpd mstpctl
26
27romfs: all
28 $(ROMFSINST) /sbin/mstpd
29 $(ROMFSINST) /sbin/mstpctl
30 $(ROMFSINST) /sbin/bridge-stp
31
32#depend:
33# makedepend -I. -Y *.c -f .depend