(CFLAGS, CPPFLAGS): POSIX make has only CFLAGS. Fold CPPFLAGS into
CFLAGS. Use CFLAGS when linking, to match POSIX make implicit rule.
This commit is contained in:
parent
62b041efb5
commit
ae6acc09ce
1 changed files with 2 additions and 3 deletions
|
@ -33,8 +33,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
CC = @CC@
|
CC = @CC@
|
||||||
CFLAGS = @CFLAGS@
|
CFLAGS = @CFLAGS@ @CPPFLAGS@ @DEFS@ -I.
|
||||||
CPPFLAGS = @CPPFLAGS@ @DEFS@ -I.
|
|
||||||
LDFLAGS = @LDFLAGS@
|
LDFLAGS = @LDFLAGS@
|
||||||
LIBS = @LIBS@
|
LIBS = @LIBS@
|
||||||
E = @EXEEXT@
|
E = @EXEEXT@
|
||||||
|
@ -59,7 +58,7 @@ saveargv.$O servcmd.$O serverio.$O tags.$O termio.$O termlib.$O
|
||||||
all: $(prog)
|
all: $(prog)
|
||||||
|
|
||||||
$(prog): $(obj)
|
$(prog): $(obj)
|
||||||
$(CC) $(LDFLAGS) -o empire $(obj) $(LIBS)
|
$(CC) $(CFLAGS) $(LDFLAGS) -o empire $(obj) $(LIBS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(obj) $(prog)
|
rm -f $(obj) $(prog)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue