summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJinkun Jang <jinkun.jang@samsung.com>2013-03-13 01:45:28 +0900
committerJinkun Jang <jinkun.jang@samsung.com>2013-03-13 01:45:28 +0900
commit290e0617528e3bb204247a2ad49cbacf42722264 (patch)
tree7c6a96bd438a79f5197e689fc5d15c87f5164769 /Makefile
parent033f8ffbca1b8f2d81f3baad69e6fcf1af0cf67c (diff)
downloadvconfig-290e0617528e3bb204247a2ad49cbacf42722264.tar.gz
vconfig-290e0617528e3bb204247a2ad49cbacf42722264.tar.bz2
vconfig-290e0617528e3bb204247a2ad49cbacf42722264.zip
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile44
1 files changed, 44 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..23bb374
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,44 @@
+# makefile template
+
+include MakeInclude
+
+LDLIBS =
+
+VLAN_OBJS = vconfig.o
+
+ALL_OBJS = ${VLAN_OBJS}
+
+VCONFIG = vconfig #program to be created
+
+
+all: ${VCONFIG} macvlan_config
+
+
+#This is pretty silly..
+vconfig.h: Makefile
+ touch vconfig.h
+
+
+$(VCONFIG): $(VLAN_OBJS)
+ $(CC) $(CCFLAGS) $(LDFLAGS) -o $(VCONFIG) $(VLAN_OBJS) $(LDLIBS)
+ $(STRIP) $(VCONFIG)
+
+macvlan_config: macvlan_config.c
+ $(CC) $(CCFLAGS) $(LDFLAGS) -o $@ $<
+
+$(ALL_OBJS): %.o: %.c %.h
+ @echo " "
+ @echo "Making $<"
+ $(CC) $(CCFLAGS) -c $<
+
+clean:
+ rm -f *.o
+
+purge: clean
+ rm -f *.flc ${VCONFIG} macvlan_config vconfig.h
+ rm -f *~
+
+
+
+
+