summaryrefslogtreecommitdiff
path: root/utils/nwztools/upgtools/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'utils/nwztools/upgtools/Makefile')
-rw-r--r--utils/nwztools/upgtools/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/utils/nwztools/upgtools/Makefile b/utils/nwztools/upgtools/Makefile
new file mode 100644
index 0000000000..ad83c0e4c6
--- /dev/null
+++ b/utils/nwztools/upgtools/Makefile
@@ -0,0 +1,26 @@
1DEFINES=
2CC=gcc
3CXX=g++
4LD=g++
5PROFILE=
6CFLAGS=-g $(PROFILE) -std=c99 -W -Wall $(DEFINES) `pkg-config --cflags openssl` `pkg-config --cflags libcrypto++`
7CXXFLAGS=-g $(PROFILE) -W -Wall $(DEFINES) `pkg-config --cflags openssl` `pkg-config --cflags libcrypto++`
8LDFLAGS=$(PROFILE) `pkg-config --libs openssl` `pkg-config --libs libcrypto++` -lcrypt
9BINS=upgtool
10
11all: $(BINS)
12
13%.o: %.c
14 $(CC) $(CFLAGS) -c -o $@ $<
15
16%.o: %.cpp
17 $(CXX) $(CXXFLAGS) -c -o $@ $<
18
19upgtool: upgtool.o misc.o fwp.o mg.o keysig_search.o
20 $(LD) -o $@ $^ $(LDFLAGS)
21
22clean:
23 rm -fr *.o
24
25veryclean:
26 rm -rf $(BINS)