be friendly to non-Linux non-gcc systems

This commit is contained in:
leitner
2002-09-07 11:31:53 +00:00
parent b1960800b8
commit e6eb6100ab
3 changed files with 8 additions and 5 deletions

View File

@@ -44,7 +44,7 @@ endif
ar cru $@ $^
%: %.c
$(DIET) $(CC) $(CFLAGS) -o $@ $^ -lowfat
$(DIET) $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) -lowfat
t1 parse: ldif.a storage.a
t2: ldap.a asn1.a
@@ -54,10 +54,10 @@ bindrequest tinyldap tinyldap_standalone tinyldap_debug ldapclient ldapclient_st
idx2ldif: ldap.a
tinyldap_standalone: tinyldap.c
$(DIET) $(CC) $(CFLAGS) -DSTANDALONE -o $@ $^ -lowfat
$(DIET) $(CC) $(CFLAGS) -DSTANDALONE -o $@ $^ $(LDFLAGS) -lowfat
tinyldap_debug: tinyldap.c
$(DIET) $(CC) $(CFLAGS) -DSTANDALONE -DDEBUG -o $@ $^ -lowfat
$(DIET) $(CC) $(CFLAGS) -DSTANDALONE -DDEBUG -o $@ $^ $(LDFLAGS) -lowfat
.PHONY: clean tar
clean: