smol makefile stuff
This commit is contained in:
1 parent
1380a394c7
commit
c508a7ea78
1 file changed
+6
-7
+6
-7
@@ -261,14 +261,11 @@ opts+=$(debug_opts)
|
||||
|
||||
opts+=$(foreach v,$(passthru_opts),$(if $($(v)),-D$(v)))
|
||||
|
||||
opts+=$(CPPFLAGS) $(CFLAGS)
|
||||
libs+=$(LDFLAGS) -lstdc++ -lpthread
|
||||
asflags:=$(ASFLAGS) -x assembler-with-cpp
|
||||
|
||||
opts+=$(WFLAGS) $(CPPFLAGS) $(CFLAGS)
|
||||
cxxopts:=$(opts) $(CXXFLAGS)
|
||||
|
||||
# pls dont pass the warning flags to ceepeepee
|
||||
opts+=$(WFLAGS)
|
||||
libs+=$(LDFLAGS) -lstdc++ -lpthread
|
||||
asflags:=$(ASFLAGS) -x assembler-with-cpp
|
||||
|
||||
cc=$(CC)
|
||||
cxx=$(CXX)
|
||||
@@ -289,6 +286,7 @@ ifndef SILENT
|
||||
ifndef MAKE_RESTARTS
|
||||
ifndef destructive
|
||||
$(shell $(CC) -v)
|
||||
#$(shell $(CXX) -v)
|
||||
define flags =
|
||||
|
||||
SHELL ..... $(SHELL)
|
||||
@@ -316,6 +314,7 @@ endif
|
||||
|
||||
LD:=$(CC)
|
||||
cc:=$(cc) $(opts)
|
||||
cxx:=$(cxx) $(cxxopts)
|
||||
ifdef UPX
|
||||
upx=$(UPX) $(UPX_OPTS)
|
||||
endif
|
||||
@@ -393,7 +392,7 @@ $(objdir)/%.$(1) : %.$(2) | $$$$(@D)/
|
||||
endef
|
||||
|
||||
$(eval $(call _recipe,o,c,$(cc) -c -o $$@ $$<))
|
||||
$(eval $(call _recipe,o,cpp,$(cxx) $(cxxopts) -c -o $$@ $$<))
|
||||
$(eval $(call _recipe,o,cpp,$(cxx) -c -o $$@ $$<))
|
||||
$(eval $(call _recipe,o,s,$(cc) $(asflags) -c -o $$@ $$<))
|
||||
$(eval $(call _recipe,res,rc,$(windres) -i $$< -o $$@))
|
||||
|
||||
|
||||
Reference in new issue
Block a user