HatariWii/tests/natfeats/Makefile.gcc

25 lines
368 B
Makefile
Raw Permalink Normal View History

2018-05-25 20:45:09 +02:00
# A GCC makefile for Native Features tester
NAME = nf_gcc.tos
CC = gcc
CFLAGS = -Wall -O2 -m68000 -mshort -DTEST
LDFLAGS = -s
OBS = nf_gcc.o nf_asmg.o
all: $(NAME)
$(NAME): $(OBS)
$(CC) $(LDFLAGS) $(OBS) -o $@
nf_gcc.o: natfeats.c
$(CC) $(CFLAGS) -c $< -o $@
nf_asmg.o: nf_asmg.s
$(CC) $(CFLAGS) -c $< -o $@
veryclean:
$(RM) $(OBS) *~ *.bak
$(RM) $(NAME)