aboutsummaryrefslogtreecommitdiffstats
path: root/brctl/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'brctl/Makefile')
-rw-r--r--brctl/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/brctl/Makefile b/brctl/Makefile
new file mode 100644
index 0000000..e34570b
--- /dev/null
+++ b/brctl/Makefile
@@ -0,0 +1,25 @@
+all: brctl brctld
+
+brctl: brctl.o brctl_cmd.o brctl_disp.o ../libbridge/libbridge.a
+ gcc -Wall -g -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
+ gcc -Wall -g -o brctld brctld.o brctl_cmd.o brctl_disp.o ../libbridge/libbridge.a
+
+clean:
+ rm -f *.o
+ rm -f brctl
+ rm -f brctld
+ rm -f core
+
+brctl.o: brctl.c brctl.h
+ gcc -I../libbridge -Wall -c -g -o brctl.o brctl.c
+
+brctld.o: brctld.c brctl.h
+ gcc -I../libbridge -Wall -c -g -o brctld.o brctld.c
+
+brctl_cmd.o: brctl_cmd.c brctl.h
+ gcc -I../libbridge -Wall -c -g -o brctl_cmd.o brctl_cmd.c
+
+brctl_disp.o: brctl_disp.c brctl.h
+ gcc -I../libbridge -Wall -c -g -o brctl_disp.o brctl_disp.c