From: Thadeu Lima de Souza Cascardo Date: Sun, 2 Nov 2008 00:44:09 +0000 (-0200) Subject: Added a simple Makefile X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fchat.git;a=commitdiff_plain;h=97183f5a2720f6fd212bcffb5a6a445d5be94338 Added a simple Makefile This Makefile builds the objects without linking them to an executable, since we don't have a main besides the testing stuff. --- diff --git a/Makefile b/Makefile new file mode 100644 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)