From be0e694c795c225081f40a30470828ca88e08e63 Mon Sep 17 00:00:00 2001 From: Martin Zak <zakmart1@fit.cvut.cz> Date: Wed, 1 Jan 2014 20:16:18 +0100 Subject: [PATCH] makefiles --- acat/makefile | 13 +++++++++++++ aconvert.dot/makefile | 13 +++++++++++++ aconvert.gastex/makefile | 13 +++++++++++++ aconvert/makefile | 13 +++++++++++++ alib/makefile | 13 +++++++++++++ makefile | 16 ++++++++++++++++ 6 files changed, 81 insertions(+) create mode 100644 acat/makefile create mode 100644 aconvert.dot/makefile create mode 100644 aconvert.gastex/makefile create mode 100644 aconvert/makefile create mode 100644 alib/makefile create mode 100644 makefile diff --git a/acat/makefile b/acat/makefile new file mode 100644 index 0000000000..2921dd1af3 --- /dev/null +++ b/acat/makefile @@ -0,0 +1,13 @@ +APPLICATION=acat +CXXFLAGS= -std=c++11 -O2 -c -Wall -I../alib/src +LDFLAGS= -L ../alib -lxml2 -lalib + + +SOURCES = src/*.cpp + +all: + g++ $(CXXFLAGS) $(SOURCES) + g++ $(LDFLAGS) *.o -o $(APPLICATION) + +clean: + $(RM) *.o *.d $(APPLICATION) diff --git a/aconvert.dot/makefile b/aconvert.dot/makefile new file mode 100644 index 0000000000..5be1ed48cc --- /dev/null +++ b/aconvert.dot/makefile @@ -0,0 +1,13 @@ +APPLICATION=aconvert.dot +CXXFLAGS= -std=c++11 -O2 -c -Wall -I../alib/src +LDFLAGS= -L ../alib -lxml2 -lalib + + +SOURCES = src/*.cpp + +all: + g++ $(CXXFLAGS) $(SOURCES) + g++ $(LDFLAGS) *.o -o $(APPLICATION) + +clean: + $(RM) *.o *.d $(APPLICATION) diff --git a/aconvert.gastex/makefile b/aconvert.gastex/makefile new file mode 100644 index 0000000000..452c48558e --- /dev/null +++ b/aconvert.gastex/makefile @@ -0,0 +1,13 @@ +APPLICATION=aconvert.gastex +CXXFLAGS= -std=c++11 -O2 -c -Wall -I../alib/src +LDFLAGS= -L ../alib -lxml2 -lalib + + +SOURCES = src/*.cpp + +all: + g++ $(CXXFLAGS) $(SOURCES) + g++ $(LDFLAGS) *.o -o $(APPLICATION) + +clean: + $(RM) *.o *.d $(APPLICATION) diff --git a/aconvert/makefile b/aconvert/makefile new file mode 100644 index 0000000000..f285c3717e --- /dev/null +++ b/aconvert/makefile @@ -0,0 +1,13 @@ +APPLICATION=aconvert +CXXFLAGS= -std=c++11 -O2 -c -Wall -I../alib/src +LDFLAGS= -L ../alib -lxml2 -lalib + + +SOURCES = src/*.cpp + +all: + g++ $(CXXFLAGS) $(SOURCES) + g++ $(LDFLAGS) *.o -o $(APPLICATION) + +clean: + $(RM) *.o *.d $(APPLICATION) diff --git a/alib/makefile b/alib/makefile new file mode 100644 index 0000000000..6d1a3f5044 --- /dev/null +++ b/alib/makefile @@ -0,0 +1,13 @@ +LIBRARY=libalib.so +CXXFLAGS= -std=c++11 -O2 -c -Wall -fPIC -I/usr/include/libxml2/ +LDFLAGS= -shared -lxml2 + + +SOURCES = src/automaton/*.cpp src/automaton/TM/*.cpp src/automaton/FSM/*.cpp src/automaton/PDA/*cpp src/automaton/exception/*.cpp src/regexp/*.cpp src/grammar/*.cpp src/grammar/Regular/*.cpp src/grammar/Linear/*.cpp src/grammar/Unrestricted/*.cpp src/grammar/ContextSensitive/*.cpp src/grammar/ContextFree/*.cpp src/sax/*.cpp src/alphabet/*.cpp src/*.cpp + +all: + g++ $(CXXFLAGS) $(SOURCES) + g++ $(LDFLAGS) *.o -o $(LIBRARY) + +clean: + $(RM) *.o *.d $(LIBRARY) diff --git a/makefile b/makefile new file mode 100644 index 0000000000..57b65c6218 --- /dev/null +++ b/makefile @@ -0,0 +1,16 @@ +SUBDIRS = alib acat aconvert aconvert.dot aconvert.gastex +.PHONY: subdirs $(SUBDIRS) + +all: $(SUBDIRS) +$(SUBDIRS): + $(MAKE) -C $@ + +install: + rm -rf bin + mkdir bin + cp alib/libalib.so bin/ + cp acat/acat bin/ + cp aconvert/aconvert bin/ + cp aconvert.dot/aconvert.dot bin/ + cp aconvert.gastex/aconvert.gastex bin/ + cp -r examples bin/ -- GitLab