diff options
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | bfind.c | 2 | ||||
-rw-r--r-- | config.mk | 4 |
3 files changed, 6 insertions, 4 deletions
@@ -7,7 +7,7 @@ include $(CONFIGFILE) all: bfind bfind.o: bfind.c arg.h - $(CC) -c -o $@ bfind.c $(CPPFLAGS) $(CFLAGS) + $(CC) -c -o $@ bfind.c $(CFLAGS) $(CPPFLAGS) bfind: bfind.o $(CC) -o $@ bfind.o $(LDFLAGS) @@ -23,6 +23,6 @@ uninstall: -rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/bfind.1" clean: - -rm -rf -- bfind *.o + -rm -rf -- bfind *.o *.su .PHONY: all install uninstall clean @@ -217,7 +217,7 @@ main(int argc, char *argv[]) { char ending = '\n', *path; struct stat st; - dev_t start_dev; + dev_t start_dev = 0; /* compiler incorrectly thinks its may be uninitialised if not assigned */ size_t i; ARGBEGIN { @@ -1,6 +1,8 @@ PREFIX = /usr MANPREFIX = $(PREFIX)/share/man +CC = cc + CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -CFLAGS = -std=c99 -Wall +CFLAGS = -std=c99 -Wall -O2 LDFLAGS = |