summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-03-10 14:52:58 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-03-10 14:52:58 +0100
commite7926d0b5b4738e43b0274171f5f5884248bd44b (patch)
treebc4f28517c6cdc568d6a8d04e0a6b7ea2cd65559
parent9b67027877823512f12917e03fc382599fd3d88c (diff)
downloadecon-e7926d0b5b4738e43b0274171f5f5884248bd44b.tar.gz
econ-e7926d0b5b4738e43b0274171f5f5884248bd44b.tar.bz2
econ-e7926d0b5b4738e43b0274171f5f5884248bd44b.zip
Makefile: Add a common rule for both client and server
-rw-r--r--Makefile5
1 files changed, 1 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 0f6743e..934f70a 100644
--- a/Makefile
+++ b/Makefile
@@ -2,10 +2,7 @@ CFLAGS=-ggdb -Wall -Wstrict-prototypes -Wmissing-prototypes
all: econproxy econserv
-econproxy: econproxy.c util.c util.h econproto.h
- gcc $(CFLAGS) -o $@ econproxy.c util.c
-
-econserv: econserv.c util.c util.h econproto.h
+%: %.c util.c util.h econproto.h
gcc $(CFLAGS) -Wall -o $@ $< util.c
clean: