24 lines
763 B
Diff
24 lines
763 B
Diff
--- a/Makefile 2012-01-23 10:56:26.473607101 +0100
|
|
+++ b/Makefile 2012-01-23 10:57:43.806746482 +0100
|
|
@@ -32,7 +32,6 @@ TABSRCS = crontab.c chuser.c
|
|
TABOBJS = crontab.o chuser.o
|
|
PROTOS = protos.h
|
|
LIBS =
|
|
-LDFLAGS =
|
|
DEFS = -DVERSION='"$(VERSION)"' \
|
|
-DSCRONTABS='"$(SCRONTABS)"' -DCRONTABS='"$(CRONTABS)"' \
|
|
-DCRONSTAMPS='"$(CRONSTAMPS)"' -DLOG_IDENT='"$(LOG_IDENT)"' \
|
|
@@ -54,10 +53,10 @@ protos.h: $(SRCS) $(TABSRCS)
|
|
fgrep -h Prototype $(SRCS) $(TABSRCS) > protos.h
|
|
|
|
crond: $(OBJS)
|
|
- $(CC) $(LDFLAGS) $^ $(LIBS) -o crond
|
|
+ $(CC) $(CFLAGS) $(LDFLAGS) $^ $(LIBS) -o crond
|
|
|
|
crontab: $(TABOBJS)
|
|
- $(CC) $(LDFLAGS) $^ -o crontab
|
|
+ $(CC) $(CFLAGS) $(LDFLAGS) $^ -o crontab
|
|
|
|
%.o: %.c defs.h $(PROTOS)
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c $(DEFS) $< -o $@
|