summaryrefslogtreecommitdiffstats
path: root/database/fbexport/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'database/fbexport/Makefile')
-rw-r--r--database/fbexport/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/database/fbexport/Makefile b/database/fbexport/Makefile
new file mode 100644
index 0000000000..d909bb4045
--- /dev/null
+++ b/database/fbexport/Makefile
@@ -0,0 +1,28 @@
+###############################################################################
+.SUFFIXES: .o .cpp
+
+OBJECTS_FBE=fbexport/ParseArgs.o fbexport/FBExport.o fbexport/cli-main.o
+OBJECTS_FBC=fbcopy/args.o fbcopy/fbcopy.o fbcopy/TableDependency.o fbcopy/main.o
+
+# Compiler & linker flags
+COMPILE_FLAGS=-O3 -DIBPP_LINUX -DIBPP_GCC
+LINK_FLAGS=-pthread -L/usr/lib -libpp -L/opt/firebird/lib -lfbclient
+
+
+all: exe/fbcopy exe/fbexport
+
+exe/fbexport: $(OBJECTS_FBE)
+ g++ $(LINK_FLAGS) $(OBJECTS_FBE) -oexe/fbexport
+
+exe/fbcopy: $(OBJECTS_FBC)
+ g++ $(LINK_FLAGS) $(OBJECTS_FBC) -oexe/fbcopy
+
+
+install:
+ install exe/fbcopy /usr/bin/fbcopy
+ install exe/fbexport /usr/bin/fbexport
+
+.cpp.o:
+ g++ -c $(COMPILE_FLAGS) -o $@ $<
+
+#EOF