summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..365d550
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+PROGNAME = tunnel
+
+CFLAGS = -Wall -Wextra
+LDFLAGS =
+
+include libevent.mk
+
+SOURCES = $(wildcard *.c)
+OBJECTS = $(patsubst %.c,%.o,$(SOURCES))
+
+$(PROGNAME): $(OBJECTS)
+ gcc $(LDFLAGS) -o $@ $^
+
+%.o: %.c
+ gcc $(CFLAGS) -c -o $@ $<
+
+clean:
+ @echo cleaning...
+ @rm -f *.o *~