GuinnessServer/Makefile

67 lines
1.4 KiB
Makefile
Raw Permalink Normal View History

2020-03-28 10:10:04 +01:00
#
# Guinness Server from tnemeth
#
# Makefile handcrafted by tTh
#
2020-03-28 15:27:55 +01:00
all: guinness guinnessd
# ---------------------------------------------------------
2020-03-28 10:10:04 +01:00
H_DEP = broadcast.h commands.h defines.h guinnessd.h printlog.h \
xmem.h clients.h config.h drinks.h lists.h tools.h
COPT = -Wall -g
2020-03-28 10:59:41 +01:00
D_OBJS = xmem.o broadcast.o printlog.o lists.o tools.o drinks.o \
commands.o clients.o
2020-03-28 11:56:49 +01:00
C_OBJS = xmem.o tools.o
2020-03-28 10:59:41 +01:00
D_LIBS = -lpthread -lcrypt
2020-03-28 10:10:04 +01:00
# ---------------------------------------------------------
2020-03-28 10:59:41 +01:00
#
# Main program
#
guinnessd: guinnessd.o Makefile $(D_OBJS)
gcc -g $< $(D_OBJS) $(D_LIBS) -o $@
2020-03-28 10:10:04 +01:00
2020-03-28 10:59:41 +01:00
guinnessd.o: guinnessd.c Makefile $(H_DEP)
2020-03-28 10:10:04 +01:00
gcc $(COPT) -c $<
2020-03-28 11:56:49 +01:00
#
guinness: guinness.o Makefile $(D_OBJS)
gcc -g $< $(C_OBJS) $(D_LIBS) -o $@
guinness.o: guinness.c Makefile $(H_DEP)
gcc $(COPT) -c $<
2020-03-28 10:59:41 +01:00
# ---------------------------------------------------------
#
# modules needed by the daemon
#
broadcast.o: broadcast.c Makefile $(H_DEP)
gcc $(COPT) -c $<
printlog.o: printlog.c Makefile $(H_DEP)
gcc $(COPT) -c $<
lists.o: lists.c Makefile $(H_DEP)
gcc $(COPT) -c $<
xmem.o: xmem.c Makefile $(H_DEP)
gcc $(COPT) -c $<
tools.o: tools.c Makefile $(H_DEP)
gcc $(COPT) -c $<
drinks.o: drinks.c Makefile $(H_DEP)
gcc $(COPT) -c $<
commands.o: commands.c Makefile $(H_DEP)
gcc $(COPT) -c $<
clients.o: clients.c Makefile $(H_DEP)
gcc $(COPT) -c $<
2020-03-28 10:10:04 +01:00
# ---------------------------------------------------------