Browse Source

Add externally defined CFLAGS and LDFLAGS to compiler and linker options.

ObjPtr
Michael Uleysky 9 years ago
parent
commit
c5bff0c2f0
  1. 4
      Makefile
  2. 4
      src/Makefile

4
Makefile

@ -5,8 +5,8 @@ CPPFLAGS=-std=gnu++11 -I../include -I../../include
LIBSFLAGS= LIBSFLAGS=
WARNFLAGS=-Wall WARNFLAGS=-Wall
CFLAGS=$(OPTFLAGS) $(EXPORTFLAGS) $(WARNFLAGS) $(CPPFLAGS) CFLAGS+=$(OPTFLAGS) $(EXPORTFLAGS) $(WARNFLAGS) $(CPPFLAGS)
LDFLAGS=$(OPTFLAGS) $(EXPORTFLAGS) $(WARNFLAGS) $(LIBSFLAGS) LDFLAGS+=$(OPTFLAGS) $(EXPORTFLAGS) $(WARNFLAGS) $(LIBSFLAGS)
CC=g++ CC=g++

4
src/Makefile

@ -5,8 +5,8 @@ CPPFLAGS=-std=gnu++11 -I../include
LIBSFLAGS=-ldl -lpthread $(MODLIBS) LIBSFLAGS=-ldl -lpthread $(MODLIBS)
WARNFLAGS=-Wall WARNFLAGS=-Wall
CFLAGS=$(OPTFLAGS) $(EXPORTFLAGS) $(WARNFLAGS) $(CPPFLAGS) CFLAGS+=$(OPTFLAGS) $(EXPORTFLAGS) $(WARNFLAGS) $(CPPFLAGS)
LDFLAGS=$(OPTFLAGS) $(EXPORTFLAGS) $(WARNFLAGS) $(LIBSFLAGS) LDFLAGS+=$(OPTFLAGS) $(EXPORTFLAGS) $(WARNFLAGS) $(LIBSFLAGS)
CC=g++ CC=g++

Loading…
Cancel
Save