forked from mentebinaria/readpe
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (25 loc) · 698 Bytes
/
Copy pathMakefile
File metadata and controls
27 lines (25 loc) · 698 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
LIBPE_DIR = lib/libpe
PEV_DIR = src
VERSION = 0.80
ZIPDIR = pev-$(VERSION)-win32
ZIPFILE = $(ZIPDIR).zip
all:
%:
cd $(LIBPE_DIR) && $(MAKE) $@
cd $(PEV_DIR) && $(MAKE) $@
# Cygwin only
zip:
cd $(PEV_DIR)/windows && $(MAKE)
mkdir -p $(ZIPDIR)/plugins
cp src/build/plugins/*.dll $(ZIPDIR)/plugins/
echo -ne "plugins_dir=plugins\r\n" > $(ZIPDIR)/pev.conf
cp $(PEV_DIR)/userdb.txt $(ZIPDIR)
cp lib/libpe/libpe.dll $(ZIPDIR)/
cp /usr/bin/cygwin1.dll $(ZIPDIR)/
cp /usr/bin/cygcrypto-1.0.0.dll $(ZIPDIR)/
cp /usr/bin/cygz.dll $(ZIPDIR)/
cp README.md $(ZIPDIR)/
cp $(PEV_DIR)/build/*.exe $(ZIPDIR)/
cp $(PEV_DIR)/windows/run.bat $(ZIPDIR)/
zip -r $(ZIPFILE) $(ZIPDIR)/*
rm -rf $(ZIPDIR)