summaryrefslogtreecommitdiff
path: root/Makefile
blob: c34b691b0050537a20228f8e3be995068c436a58 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
include make.defs

all: login-server char-server map-server ladmin
tools: tool eathena-monitor


common: src/common
	${MAKE} -C src/common
login-server: common src/login
	${MAKE} -C src/login
	${CP} src/login/login login-server
char-server: common src/char
	${MAKE} -C src/char
	${CP} src/char/char char-server
map-server: common src/map
	${MAKE} -C src/map
	${CP} src/map/map map-server
ladmin: common src/ladmin
	${MAKE} -C src/ladmin

clean: clean-common clean-login clean-char clean-map clean-ladmin clean-tools

clean-common:
	${MAKE} -C src/common clean
clean-login:
	${MAKE} -C src/login clean
clean-char:
	${MAKE} -C src/char clean
clean-map:
	${MAKE} -C src/map clean
clean-ladmin:
	${MAKE} -C src/ladmin clean

# This target is separate for historical reasons, and because it is optional
tool: common src/tool
	${MAKE} -C src/tool
eathena-monitor: tool
	${CP} src/tool/eathena-monitor .
clean-tools:
	${MAKE} -C src/tool clean