You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.4 KiB
27 lines
1.4 KiB
|
9 years ago
|
Index: src/Makefile
|
||
|
|
--- src/Makefile.orig 2017-04-28 17:46:54.000000000 +0200
|
||
|
|
+++ src/Makefile 2017-04-29 12:37:38.264938000 +0200
|
||
|
|
@@ -35,8 +35,8 @@
|
||
|
|
endif
|
||
|
|
|
||
|
|
# Command-line FLIF encoding/decoding tool - LGPLv3
|
||
|
|
-flif: $(FILES_H) $(FILES_CPP) flif.cpp
|
||
|
|
- $(CXX) -std=gnu++11 $(CXXFLAGS) $(OPTIMIZATIONS) -g0 -Wall $(FILES_CPP) flif.cpp $(LDFLAGS) -o flif
|
||
|
|
+flif: $(FILES_CPP:%.cpp=%.o) flif.o
|
||
|
|
+ $(CXX) -std=gnu++11 $(CXXFLAGS) $(OPTIMIZATIONS) $(FILES_CPP:%.cpp=%.o) flif.o $(LDFLAGS) -o flif
|
||
|
|
|
||
|
|
# Command-line FLIF decoding tool - Apache2 (not built by default)
|
||
|
|
dflif: $(FILES_H) $(FILES_CPP) flif.cpp
|
||
|
|
@@ -52,6 +52,11 @@
|
||
|
|
libflif$(LIBEXT): $(FILES_H) $(FILES_CPP) library/*.h library/*.hpp library/*.cpp
|
||
|
|
$(CXX) -std=gnu++11 $(CXXFLAGS) $(LIB_OPTIMIZATIONS) -g0 -Wall -shared -fPIC $(FILES_CPP) library/flif-interface.cpp $(LDFLAGS) -Wl,$(SONAME),libflif$(LIBEXTV) -o libflif$(LIBEXTV)
|
||
|
|
ln -sf libflif$(LIBEXTV) libflif$(LIBEXT)
|
||
|
|
+.cpp.o:
|
||
|
|
+ $(CXX) -std=gnu++11 $(CXXFLAGS) -c -o $@ $<
|
||
|
|
+libflif.a: $(FILES_CPP:%.cpp=%.o) library/flif-interface.o
|
||
|
|
+ ar rc libflif.a $(FILES_CPP:%.cpp=%.o) library/flif-interface.o
|
||
|
|
+ ranlib libflif.a
|
||
|
|
|
||
|
|
libflif.dbg$(LIBEXT): $(FILES_H) $(FILES_CPP) library/*.h library/*.hpp library/*.cpp
|
||
|
|
$(CXX) -std=gnu++11 $(CXXFLAGS) -DDEBUG -O1 -ggdb3 -Wall -shared -fPIC $(FILES_CPP) library/flif-interface.cpp $(LDFLAGS) -Wl,$(SONAME),libflif$(LIBEXTV) -o libflif.dbg$(LIBEXTV)
|