2013-05-07 05:57:34 -07:00
|
|
|
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
|
|
|
|
|
2013-11-21 16:02:12 -08:00
|
|
|
hlextract: Main.o ../HLLib/libhl.a
|
|
|
|
$(CXX) $(LDFLAGS) -o $@ $^
|
2013-05-07 05:57:34 -07:00
|
|
|
|
|
|
|
.PHONY: all clean install
|