39 lines
970 B
Text
39 lines
970 B
Text
--- Makefile.orig 2008-04-25 13:09:33.000000000 +0200
|
|
+++ Makefile 2008-04-25 21:51:06.000000000 +0200
|
|
@@ -35,18 +35,22 @@
|
|
|
|
auth.a: auth.o
|
|
|
|
-DIET=/opt/diet/bin/diet -Os
|
|
-CC=gcc
|
|
+DIET=
|
|
+CC?=gcc
|
|
CFLAGS=-pipe -I. -Wall -W -Wextra
|
|
ifneq ($(DEBUG),)
|
|
-DIET=/opt/diet/bin/diet
|
|
-CFLAGS=-pipe -I. -Wall -W -g -fstack-protector
|
|
+DIET=
|
|
+CFLAGS?=-pipe -I. -Wall -W -g -fstack-protector
|
|
endif
|
|
ifeq ($(COVERAGE),1)
|
|
DIET=
|
|
-CFLAGS=-pipe -I. -g -fprofile-arcs -ftest-coverage
|
|
+CFLAGS?=-pipe -I. -g -fprofile-arcs -ftest-coverage
|
|
endif
|
|
|
|
+CFLAGS+=-I. -I${LOCALBASE}/include/libowfat -Os
|
|
+LDFLAGS+=-L${LOCALBASE}/lib
|
|
+LIBS+=-lmd
|
|
+
|
|
ifneq ($(DIET),)
|
|
LIBS+=-llatin1
|
|
else
|
|
@@ -79,7 +83,7 @@
|
|
$(DIET) $(CC) $(CFLAGS) -DSTANDALONE -DDEBUG -o $@ $^ $(LDFLAGS) -lowfat $(LIBS)
|
|
|
|
acl: acl.c ldap.a asn1.a
|
|
- $(DIET) $(CC) $(CFLAGS) -o acl acl.c -I. ldap.a asn1.a -lowfat $(LIBS)
|
|
+ $(DIET) $(CC) $(CFLAGS) -o acl acl.c -I. ldap.a asn1.a $(LDFLAGS) -lowfat $(LIBS)
|
|
|
|
|
|
.PHONY: clean tar
|