Repair CentOS 6 build (fails due to clock_gettime() being undefined)

GitLab issue #2.
This commit is contained in:
Eric S. Raymond 2017-05-25 09:09:11 -04:00
parent 580565e254
commit 76527321b5

View file

@ -1,5 +1,6 @@
# Makefile for the open-source release of adventure 2.5 # Makefile for the open-source release of adventure 2.5
LIBS=-lrt
OBJS=main.o init.o actions1.o actions2.o score.o misc.o OBJS=main.o init.o actions1.o actions2.o score.o misc.o
SOURCES=$(OBJS:.o=.c) COPYING NEWS README TODO advent.text control SOURCES=$(OBJS:.o=.c) COPYING NEWS README TODO advent.text control
@ -7,7 +8,7 @@ SOURCES=$(OBJS:.o=.c) COPYING NEWS README TODO advent.text control
gcc -O $(DBX) -c $< gcc -O $(DBX) -c $<
advent: $(OBJS) advent: $(OBJS)
gcc -O $(DBX) -o advent $(OBJS) gcc -O $(DBX) -o advent $(OBJS) $(LIBS)
main.o: misc.h funcs.h main.o: misc.h funcs.h