summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
new file mode 100644
index 0000000..e41329f
--- /dev/null
+++ b/src/Makefile
@@ -0,0 +1,19 @@
+SOURCE = vdefine.c
+OBJS = vdefine.o
+TARGET = libvdefine.a
+
+CC = gcc
+CFLAGS = -g
+LIB_PATH = ../lib
+INC_PATH = ../inc
+
+all:$(TARGET)
+
+.c.o:
+ $(CC) -c $(CFLAGS) -I$(INC_PATH) $<
+
+libvdefine.a: $(OBJS)
+ (rm -f $@ ;ar -r $@ $^; cp $@ $(LIB_PATH);)
+
+clean:
+ rm -f *.o $(TARGET)