Added a simple Makefile
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Sun, 2 Nov 2008 00:44:09 +0000 (22:44 -0200)
committerThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Sun, 2 Nov 2008 00:44:09 +0000 (22:44 -0200)
This Makefile builds the objects without linking them to an executable,
since we don't have a main besides the testing stuff.

Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..33f423a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
+OBJECTS = sort_udns.o tcp_connect.o
+CC = gcc
+CFLAGS = -g -Wall
+LIBS = -ludns
+
+all: $(OBJECTS)
+
+.c.o:
+       $(CC) $(CFLAGS) -c $< -o $@
+
+clean:
+       rm -f $(OBJECTS)