File:  [Isaki's NoNo m68k/m88k emulator] / nono / exp / optestm88k / Makefile
Revision 1.1.1.3 (vendor branch): download - view: text, annotated - select for diffs
Wed Apr 29 17:05:04 2026 UTC (3 months ago) by root
Branches: MAIN, Isaki
CVS tags: v027, v026, v025, v024, v023, v022, v021, v020, v019, v018, v017, v016, v015, v014, HEAD
nono 0.2.3

#
# nono
# Copyright (C) 2021 nono project
# Licensed under nono-license.txt
#

.if "${MACHINE_ARCH}" == "m88k"
#
# For m88k
#

CC=	cc -g
CFLAGS=	-pipe -Werror

ASMOBJS=	\
	optestm88k_add.o		\
	optestm88k_bitfield.o	\
	optestm88k_fcmp.o		\
	optestm88k_flt.o		\
	optestm88k_lda.o		\
	optestm88k_logical.o	\
	optestm88k_muldiv.o		\
	optestm88k_sub.o		\

all:	optestm88k

optestm88k:	optestm88k_main.o optestm88k_table.o optestm88k_code.o ${ASMOBJS}
	${CC} -o $@ $>

optestm88k_main.o:	optestm88k_main.c optestm88k_main.h
optestm88k_table.o:	optestm88k_table.c optestm88k_main.h optestm88k_table.h
optestm88k_code.o:	optestm88k_code.s

.for f in ${ASMOBJS:S/optestm88k_lda.o//}
${f}:	${f:S/\.o/\.s/}
.endfor

# lda 命令1回ごとに Use of obsolete instruction のワーニングが出てしまうので
# ワーニングをとめる。全部とめるかどうかしかないようだ
optestm88k_lda.o:	optestm88k_lda.s
	${CC} -Wa,-W -c $>

.PHONY:	clean
clean:
	rm -f optestm88k *.o *.core

.else
#
# For host
#

TOPDIR=		../..
.include "${TOPDIR}/Makefile.inc"

TARGETS=	optestm88k_gen
CXXSRCS=	optestm88k_gen.cpp
OBJS=		${CXXSRCS:.cpp=.o}

.PATH:	${TOPDIR}/lib
optestm88k_gen:	${OBJS} libnnlib.a
	${CXX} ${LDFLAGS} -o $@ $>

.include "${TOPDIR}/Makefile.rule"

.endif

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.