summaryrefslogtreecommitdiff
path: root/src/login
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/login
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/login')
-rw-r--r--src/login/GNUmakefile7
-rw-r--r--src/login/Makefile12
2 files changed, 7 insertions, 12 deletions
diff --git a/src/login/GNUmakefile b/src/login/GNUmakefile
new file mode 100644
index 0000000..912127d
--- /dev/null
+++ b/src/login/GNUmakefile
@@ -0,0 +1,7 @@
+.SUFFIXES:
+all:
+ make -C ../.. login-server
+clean:
+ rm -r ../../obj/login/
+%::
+ make -C ../.. obj/login/$@
diff --git a/src/login/Makefile b/src/login/Makefile
deleted file mode 100644
index bc1e7c0..0000000
--- a/src/login/Makefile
+++ /dev/null
@@ -1,12 +0,0 @@
-include ../../make.defs
-
-all: login
-
-COMMON_OBJ = ../common/core.o ../common/socket.o ../common/timer.o ../common/db.o ../common/lock.o ../common/mt_rand.o ../common/md5calc.o
-COMMON_H = ../common/core.h ../common/socket.h ../common/timer.h ../common/mmo.h ../common/version.h ../common/db.h ../common/lock.h ../common/mt_rand.h ../common/md5calc.h
-
-login: $(COMMON_OBJ)
-login.o: login.c login.h $(COMMON_H)
-
-clean:
- rm -f *.o login