You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
629 B
28 lines
629 B
--- Makefile
|
|
+++ Makefile
|
|
@@ -2,7 +2,8 @@
|
|
#
|
|
|
|
CC = gcc
|
|
-CFLAGS = -O2 -Wall -Wstrict-prototypes
|
|
+CFLAGS += -Wall -Wstrict-prototypes
|
|
+LDFLAGS += -Wl,-z,now
|
|
LIB =
|
|
SRCS = main.c subs.c database.c job.c
|
|
OBJS = main.o subs.o database.o job.o
|
|
@@ -14,12 +15,10 @@
|
|
all: ${PROTOS} crond crontab
|
|
|
|
crond: ${OBJS}
|
|
- ${CC} ${CFLAGS} -o crond ${OBJS} ${LIB}
|
|
- strip crond
|
|
+ ${CC} ${CFLAGS} -o crond ${OBJS} ${LIB} ${LDFLAGS}
|
|
|
|
crontab: ${D_OBJS}
|
|
- ${CC} ${CFLAGS} -o crontab ${D_OBJS}
|
|
- strip crontab
|
|
+ ${CC} ${CFLAGS} -o crontab ${D_OBJS} ${LDFLAGS}
|
|
|
|
protos.h: ${SRCS} ${D_SRCS}
|
|
fgrep -h Prototype ${SRCS} ${D_SRCS} >protos.h
|