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.
23 lines
725 B
23 lines
725 B
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -71,15 +71,12 @@
|
|
MW=
|
|
#MW=-Wtraditional -Wcast-qual -Wcast-align -Wconversion -pedantic -Wlong-long -Wimplicit -Wuninitialized -W -Wshadow -Wsign-compare -Wstrict-prototypes -Wmissing-declarations
|
|
|
|
-CFLAGS1 = -Wall -Wstrict-prototypes -s -O2 -fomit-frame-pointer ${LARGEFILEFLAGS} ${MW}
|
|
-
|
|
-CC=gcc
|
|
-
|
|
-CFLAGS = ${CFLAGS1} $1 $2 $3 $4 $5 $6 $7 $8 $9 $a $b $c $d $e ${e2} $f $g $I
|
|
-LDFLAGS =
|
|
+CC ?= gcc
|
|
+CFLAGS += -Wall -Wstrict-prototypes
|
|
+CPPFLAGS += ${LARGEFILEFLAGS} ${2} ${3} ${6} ${8} ${c} ${d} ${e2} ${f} ${g}
|
|
|
|
afio : afio.o compfile.o exten.o match.o $M
|
|
- ${CC} ${LDFLAGS} afio.o compfile.o exten.o match.o $M -o afio
|
|
+ $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@
|
|
|
|
clean:
|
|
rm -f *.o afio
|