blob: 9d15ea39a4169e77b809d3d362cba962c1aada37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#
# $Id: Makefile,v 1.1.1.4 2003/10/14 08:09:37 sparq Exp $
CFLAGS = -Wall -g -O2 -I../libbridge
LDFLAGS = -g
ifeq ($(strip $(DOSTATIC)),true)
LDFLAGS += --static
endif
all: brctl brctld
brctl: brctl.o brctl_cmd.o brctl_disp.o ../libbridge/libbridge.a
$(CC) $(LDFLAGS) -o brctl brctl.o brctl_cmd.o brctl_disp.o ../libbridge/libbridge.a
brctld: brctld.o brctl_cmd.o brctl_disp.o ../libbridge/libbridge.a
$(CC) $(LDFLAGS) -o brctld brctld.o brctl_cmd.o brctl_disp.o ../libbridge/libbridge.a
clean:
rcsclean *
rm -f *~
rm -f *.o
rm -f brctl
rm -f brctld
rm -f core
brctl.o: brctl.c brctl.h
$(CC) $(CFLAGS) -c -o brctl.o brctl.c
brctld.o: brctld.c brctl.h
$(CC) $(CFLAGS) -c -o brctld.o brctld.c
brctl_cmd.o: brctl_cmd.c brctl.h
$(CC) $(CFLAGS) -c -o brctl_cmd.o brctl_cmd.c
brctl_disp.o: brctl_disp.c brctl.h
$(CC) $(CFLAGS) -c -o brctl_disp.o brctl_disp.c
|