2021-09-10 14:17:21 +00:00
|
|
|
CC = gcc
|
2021-08-15 18:42:37 +00:00
|
|
|
clientsrc = $(wildcard src/misc/*.c) \
|
|
|
|
src/SilverMUDClient.c
|
|
|
|
clientobj = $(clientsrc:.c=.o)
|
|
|
|
serversrc = $(wildcard src/misc/*.c) \
|
|
|
|
src/SilverMUDServer.c
|
|
|
|
serverobj = $(serversrc:.c=.o)
|
2021-09-10 14:17:21 +00:00
|
|
|
CLIENTLDFLAGS= -lpthread -lncurses
|
|
|
|
SERVERLDFLAGS= -lncurses
|
2021-08-15 18:42:37 +00:00
|
|
|
SilverMUDClient: $(clientobj)
|
|
|
|
gcc -o $@ $^ $(CLIENTLDFLAGS)
|
|
|
|
|
|
|
|
SilverMUDServer: $(serverobj)
|
2021-09-10 14:17:21 +00:00
|
|
|
gcc -o $@ $^ $(SERVERLDFLAGS)
|
2021-08-15 18:42:37 +00:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
rm -f $(clientobj) $(serverobj) SilverMUDClient SilverMUDServer
|
|
|
|
|
|
|
|
all: SilverMUDClient SilverMUDServer
|