# ======================== # ===== =============== # ====== ================ # ====== ================ # ====== ==== ==== == # ====== === == = = # ====== === = == = # = === === = == ==== # = === === = == = = # == ===== ==== == # ======================== # # asm-cgi-example: Makefile # Sun May 22 18:12:41 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 SRCS += ${SRCS_DIR}/c_infos.S SRCS += ${SRCS_DIR}/u_utils.S OBJS := ${SRCS:.S=.S.o} 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} all: ${TARGET} clean: ${RM} ${OBJS} ${OBJS} ${TARGET}.core ${TARGET} install: ${CP} ${TARGET} ${INSTALL_DIR} run: ${TARGET} ./${TARGET} .PHONY: all clean install run # Files prefixes # -------------- # c: core # u: utils