blob: 06b253ba639a6ab392fa5ab3f87339837f59b333 (
plain)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# ========================
# ===== ===============
# ====== ================
# ====== ================
# ====== ==== ==== ==
# ====== === == = =
# ====== === = == =
# = === === = == ====
# = === === = == = =
# == ===== ==== ==
# ========================
#
# asm-cgi-example: Makefile
# Sun May 22 16:55:43 CEST 2022
# Joe
#
# BSD Makefile
default: run
SRCS_DIR := src
INSTALL_DIR := /usr/local/www/jozan
SRCS := ${SRCS_DIR}/c_cpu.S
SRCS += ${SRCS_DIR}/c_example.S
OBJS := ${SRCS:.S=.S.o}
LDFLAGS := -lc
TARGET := asm-example.cgi
SHELL := /bin/sh
RM := rm -f
MKDIR := mkdir -p
CP := cp
MV := mv
SED := sed
INSTALL := install
.SUFFIXES: .S .c .S.o .c.o
.S.S.o:
${AS} -g -o ${.TARGET} ${.IMPSRC}
${TARGET}: ${OBJS}
${CC} ${CFLAGS} -o ${.TARGET} ${OBJS} ${LDFLAGS}
all: ${TARGET}
clean:
${RM} ${OBJS} ${OBJS} ${TARGET}.core ${TARGET}
re: clean all
install:
${CP} ${TARGET} ${INSTALL_DIR}
run: ${TARGET}
./${TARGET}
.PHONY: all clean re install run
# Files prefixes
# --------------
# c: core
|