HLExtract: add Makefile

This commit is contained in:
Ondřej Hošek 2013-05-07 14:57:34 +02:00
parent 1627ba2c46
commit 522c3f9237
1 changed files with 25 additions and 0 deletions

25
HLExtract/Makefile Normal file
View File

@ -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