scummvm random work
[patches.git] / dcron-3.2-makefile.patch
1 --- Makefile
2 +++ Makefile
3 @@ -2,8 +2,8 @@
4 #
5
6 DESTDIR ?= /usr/local
7 -CC = gcc
8 -CFLAGS = -O2 -Wall -Wstrict-prototypes
9 +CC ?= gcc
10 +CFLAGS ?= -O2 -Wall -Wstrict-prototypes
11 LIB =
12 SRCS = main.c subs.c database.c job.c
13 OBJS = main.o subs.o database.o job.o
14 @@ -15,11 +15,11 @@
15 all: ${PROTOS} crond crontab
16
17 crond: ${OBJS}
18 - ${CC} ${CFLAGS} -o crond ${OBJS} ${LIB}
19 + ${CC} ${CFLAGS} -o crond ${OBJS} ${LIB} ${LDFLAGS}
20 strip crond
21
22 crontab: ${D_OBJS}
23 - ${CC} ${CFLAGS} -o crontab ${D_OBJS}
24 + ${CC} ${CFLAGS} -o crontab ${D_OBJS} ${LDFLAGS}
25 strip crontab
26
27 protos.h: ${SRCS} ${D_SRCS}