server is running, expect more bugs

This commit is contained in:
tonton Th
2020-03-28 10:59:41 +01:00
parent 0040d27acc
commit 236e274656
10 changed files with 1653 additions and 2 deletions

View File

@@ -9,11 +9,46 @@ H_DEP = broadcast.h commands.h defines.h guinnessd.h printlog.h \
COPT = -Wall -g
# ---------------------------------------------------------
D_OBJS = xmem.o broadcast.o printlog.o lists.o tools.o drinks.o \
commands.o clients.o
guinnessd.o: guinnessd.c Makefile
D_LIBS = -lpthread -lcrypt
# ---------------------------------------------------------
#
# Main program
#
guinnessd: guinnessd.o Makefile $(D_OBJS)
gcc -g $< $(D_OBJS) $(D_LIBS) -o $@
guinnessd.o: guinnessd.c Makefile $(H_DEP)
gcc $(COPT) -c $<
# ---------------------------------------------------------
#
# 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 $<
# ---------------------------------------------------------
clients.o: clients.c Makefile $(H_DEP)
gcc $(COPT) -c $<