mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-01 13:50:36 +00:00
Add support for CXXFLAGS_EXTRA and CXXLIBS_EXTRA
This commit is contained in:
parent
8f337a7333
commit
f1d9063980
11
Makefile
11
Makefile
|
@ -5,7 +5,12 @@ TEMP_ID ?=
|
|||
# Disable implicit rules
|
||||
MAKEFLAGS += --no-builtin-rules
|
||||
|
||||
# Extra flags go at the beginning
|
||||
#
|
||||
# This is important for libraries, since they could potentially be referencing
|
||||
# things from our dependencies
|
||||
CXXFLAGS += $(CXXFLAGS_EXTRA)
|
||||
CXXLIBS += $(CXXLIBS_EXTRA)
|
||||
|
||||
EXE_OBJS :=
|
||||
EXE_LIBS :=
|
||||
|
@ -92,17 +97,17 @@ CLEAN_LIST :=
|
|||
CXXFLAGS := -w
|
||||
|
||||
ifeq ($(OS),lnx)
|
||||
CXXLIBS := -lGL -lGLU -lX11 -lpthread -ldl -lrt
|
||||
CXXLIBS += -lGL -lGLU -lX11 -lpthread -ldl -lrt
|
||||
CXXFLAGS += -DFREEGLUT_STATIC
|
||||
endif
|
||||
|
||||
ifeq ($(OS),win)
|
||||
CXXLIBS := -static-libgcc -static-libstdc++
|
||||
CXXLIBS += -static-libgcc -static-libstdc++
|
||||
CXXFLAGS += -DGLEW_STATIC -DFREEGLUT_STATIC
|
||||
endif
|
||||
|
||||
ifeq ($(OS),osx)
|
||||
CXXLIBS := -framework OpenGL -framework IOKit -framework GLUT -framework Cocoa
|
||||
CXXLIBS += -framework OpenGL -framework IOKit -framework GLUT -framework Cocoa
|
||||
endif
|
||||
|
||||
QB_QBX_OBJ := $(PATH_INTERNAL_C)/qbx$(TEMP_ID).o
|
||||
|
|
Loading…
Reference in a new issue