2012-11-03 01:16:01 +00:00
|
|
|
DEFINES=
|
|
|
|
CC=gcc
|
|
|
|
CXX=g++
|
|
|
|
LD=g++
|
|
|
|
PROFILE=
|
2017-01-08 15:08:28 +00:00
|
|
|
CFLAGS=-g $(PROFILE) -std=c99 -Wall $(DEFINES) `pkg-config --cflags libcrypto++`
|
|
|
|
CXXFLAGS=-g $(PROFILE) -Wall $(DEFINES) `pkg-config --cflags libcrypto++`
|
2017-01-04 15:55:53 +00:00
|
|
|
LDFLAGS=$(PROFILE) `pkg-config --libs libcrypto++` -lpthread
|
2012-11-03 01:16:01 +00:00
|
|
|
BINS=upgtool
|
|
|
|
|
|
|
|
all: $(BINS)
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
|
|
|
|
%.o: %.cpp
|
|
|
|
$(CXX) $(CXXFLAGS) -c -o $@ $<
|
|
|
|
|
2017-01-04 15:55:53 +00:00
|
|
|
upgtool: upgtool.o upg.o misc.o fwp.o mg.o keysig_search.o md5.o
|
2012-11-03 01:16:01 +00:00
|
|
|
$(LD) -o $@ $^ $(LDFLAGS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -fr *.o
|
|
|
|
|
|
|
|
veryclean:
|
|
|
|
rm -rf $(BINS)
|