From 522c3f92379f79a87d975e59585bae622a8fbd77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Ho=C5=A1ek?= Date: Tue, 7 May 2013 14:57:34 +0200 Subject: [PATCH] HLExtract: add Makefile --- HLExtract/Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 HLExtract/Makefile diff --git a/HLExtract/Makefile b/HLExtract/Makefile new file mode 100644 index 0000000..a0bd1cc --- /dev/null +++ b/HLExtract/Makefile @@ -0,0 +1,25 @@ +CC = gcc +CXX = g++ +CFAMFLAGS = -Wall -O2 -g -fPIC -funroll-loops -fvisibility=hidden +CFLAGS = +CXXFLAGS = +PREFIX = /usr/local + +all: hlextract + +%.o: %.cpp + $(CXX) -c $(CFAMFLAGS) $(CXXFLAGS) -o $@ $^ + +%.o: %.c + $(CC) -c $(CFAMFLAGS) $(CFLAGS) -o $@ $^ + +clean: + rm -f hlextract Main.o + +install: hlextract + install -g root -m 0755 -o root hlextract $(PREFIX)/bin + +hlextract: Main.o + $(CXX) $(LDFLAGS) -o $@ $^ ../HLLib/libhl.a + +.PHONY: all clean install