summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJozanLeClerc <>2022-05-04 20:13:30 +0000
committerJozanLeClerc <>2022-05-04 20:13:30 +0000
commitff7d5861ae846cc22761ebeea89ca709e3140b87 (patch)
tree46a0bc50f5d6eadc1738bab80c184e50d70e2f70 /Makefile
parentFirst commit (diff)
downloadasm-cgi-example-ff7d5861ae846cc22761ebeea89ca709e3140b87.tar.gz
asm-cgi-example-ff7d5861ae846cc22761ebeea89ca709e3140b87.tar.bz2
asm-cgi-example-ff7d5861ae846cc22761ebeea89ca709e3140b87.tar.xz
asm-cgi-example-ff7d5861ae846cc22761ebeea89ca709e3140b87.tar.zst
asm-cgi-example-ff7d5861ae846cc22761ebeea89ca709e3140b87.zip
In progress
FossilOrigin-Name: 99bf5897fcdaba936a96a5f95e2bf10236152ea3
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index baaebf5..ab1a625 100644
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,7 @@
default: all
SRCS_DIR := src
+INSTALL_DIR := /usr/local/www/jozan
SRCS := ${SRCS_DIR}/c_example.S
@@ -31,6 +32,7 @@ TARGET := asm-example.cgi
SHELL := /bin/sh
RM := rm -f
MKDIR := mkdir -p
+CP := cp
MV := mv
SED := sed
INSTALL := install
@@ -38,7 +40,7 @@ INSTALL := install
.SUFFIXES: .S .c .S.o .c.o
.S.S.o:
- ${AS} -o ${.TARGET} ${.IMPSRC}
+ ${AS} -g -o ${.TARGET} ${.IMPSRC}
${TARGET}: ${OBJS}
${CC} ${CFLAGS} -o ${.TARGET} ${OBJS} ${LDFLAGS}
@@ -50,7 +52,10 @@ clean:
re: clean all
-.PHONY: all clean re
+install:
+ ${CP} ${TARGET} ${INSTALL_DIR}
+
+.PHONY: all clean re install
# Files prefixes
# --------------