-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
50 lines (40 loc) · 1.44 KB
/
makefile
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright (C) 2015-2020
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 3 of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
include ../common.mk
LIB_SRC := cryptx.asm
LIB_LIB := cryptx.lib
LIB_8XV := cryptx.8xv
LIB_H := cryptx.h
LIB_EXAMPLES := $(shell ls -d examples/*)
all: $(LIB_8XV)
$(LIB_8XV): $(LIB_SRC)
sed -i '' 's/BB.*_/\.lbl_/g' $(LIB_SRC)
$(Q)$(FASMG) $< $@
clean:
$(Q)$(call REMOVE,$(LIB_LIB) $(LIB_8XV))
install: all
$(Q)$(call MKDIR,$(INSTALL_LIB))
$(Q)$(call MKDIR,$(INSTALL_H))
$(Q)$(call COPY,$(LIB_LIB),$(INSTALL_LIB))
$(Q)$(call COPY,$(LIB_H),$(INSTALL_H))
examples: $(LIB_EXAMPLES)
$(LIB_EXAMPLES):
$(MAKE) clean -C $@
$(MAKE) -C $@
archive: cryptx.zip
cryptx.zip:
zip cryptx.zip README.md cryptx.8xv cryptx.lib cryptx.h cryptx.asm
.PHONY: all clean install examples archive $(LIB_EXAMPLES)