1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
Description: Propagate build-flags to tutorials
mostly for harderning
Author: IOhannes m zmölnig
Origin: Debian
Forwarded: no
Last-Update: 2024-01-30
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- pd-flext.orig/tutorial/common.mk
+++ pd-flext/tutorial/common.mk
@@ -12,11 +12,11 @@
@OPT_FLAGS@ \
$(patsubst %,-I%,@INCLUDEDIRS@) \
-I@top_srcdir@/source \
- -D FLEXT_INLINE=1 \
+ -D FLEXT_INLINE=1 \
$(DEFS) \
-DFLEXT_SHARED
-LDFLAGS = @LD_FLAGS@ $(patsubst %,-L%,@LIBDIRS@) $(patsubst %,-framework %,$(FRAMEWORKS))
+LDFLAGS += @LD_FLAGS@ $(patsubst %,-L%,@LIBDIRS@) $(patsubst %,-framework %,$(FRAMEWORKS))
FRAMEWORKS = @FRAMEWORKS@
@@ -30,10 +30,10 @@
# ----------------------------- targets --------------------------------
all-local: $(OBJECTS)
- $(CXX) $(LDFLAGS) ./*.@OBJEXT@ $(LIBS) -o ./$(TARGET)
+ $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) ./*.@OBJEXT@ $(LIBS) -o ./$(TARGET)
./%.@OBJEXT@ : %.cpp
- $(CXX) -c $(CXXFLAGS) $< -o $@
+ $(CXX) $(CPPFLAGS) -c $(CXXFLAGS) $< -o $@
clean-local:
rm -f ./$(TARGET)
|