makefile: Set DFLAG before reference

Set the value of `DFLAG` to the include paths before it is being
referenced by `CFLAG`.
This commit is contained in:
David Holm
2018-12-29 12:22:31 +01:00
parent 5385818aa6
commit e3013e615d

View File

@@ -27,6 +27,7 @@ VPATH = ./:./support/minimig:./support/sharpmz:./support/archie:./support/st:./s
OBJ = $(SRC:.c=.o) $(SRC2:.cpp=.o) $(MINIMIG_SRC:.cpp=.o) $(SHARPMZ_SRC:.cpp=.o) $(ARCHIE_SRC:.cpp=.o) $(ST_SRC:.cpp=.o) $(X86_SRC:.cpp=.o) $(SNES_SRC:.cpp=.o)
DEP = $(SRC:.c=.d) $(SRC2:.cpp=.d) $(MINIMIG_SRC:.cpp=.d) $(SHARPMZ_SRC:.cpp=.d) $(ARCHIE_SRC:.cpp=.d) $(ST_SRC:.cpp=.d) $(X86_SRC:.cpp=.d) $(SNES_SRC:.cpp=.d)
DFLAGS = $(INCLUDE)
CFLAGS = $(DFLAGS) -c -O3 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DVDATE=\"`date +"%y%m%d"`\"
LFLAGS = -lc -lstdc++ -lrt