summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2011-04-02 22:00:46 -0700
committerBen Longbons <b.r.longbons@gmail.com>2011-04-03 18:26:38 -0700
commit4095d5726ebabc663a6d5397d003773ee652818a (patch)
treeb42844e6a6d8f283d0a31ae92ac5b0d32a669b7b /src/common
parent7a1b57a80346c1b5f2b2c5b8f0899167bf2fd9b1 (diff)
downloadtmwa-4095d5726ebabc663a6d5397d003773ee652818a.tar.gz
tmwa-4095d5726ebabc663a6d5397d003773ee652818a.tar.bz2
tmwa-4095d5726ebabc663a6d5397d003773ee652818a.tar.xz
tmwa-4095d5726ebabc663a6d5397d003773ee652818a.zip
Rewrite make system to be optimal
Diffstat (limited to 'src/common')
-rw-r--r--src/common/GNUmakefile7
-rw-r--r--src/common/Makefile15
2 files changed, 7 insertions, 15 deletions
diff --git a/src/common/GNUmakefile b/src/common/GNUmakefile
new file mode 100644
index 0000000..555f81e
--- /dev/null
+++ b/src/common/GNUmakefile
@@ -0,0 +1,7 @@
+.SUFFIXES:
+all:
+ make -C ../.. common
+clean:
+ rm -r ../../obj/common/
+%::
+ make -C ../.. obj/common/$@
diff --git a/src/common/Makefile b/src/common/Makefile
deleted file mode 100644
index 43552dc..0000000
--- a/src/common/Makefile
+++ /dev/null
@@ -1,15 +0,0 @@
-include ../../make.defs
-all: core.o socket.o timer.o grfio.o db.o lock.o nullpo.o mt_rand.o md5calc.o
-
-core.o: core.c core.h
-socket.o: socket.c socket.h mmo.h
-timer.o: timer.c timer.h
-grfio.o: grfio.c grfio.h
-db.o: db.c db.h
-lock.o: lock.c lock.h
-nullpo.o: nullpo.c nullpo.h
-mt_rand.o: mt_rand.c mt_rand.h
-md5calc.o: md5calc.c md5calc.h
-
-clean:
- rm -f *.o