#
# Makefile - The pckeys's makefile
#
# Copyright 2022 Martin Doering
#
# This file is distributed under the MIT license.
#

# For m68k-atari-mint
CC = m68k-atari-mint-gcc
CFLAGS = -mcpu=68000 -Wall -fomit-frame-pointer
#CFLAGS = -O2 -s -Wall

#LIBS = -nostartfiles -nostdlib -lgcc
LIBS = ##-nostdlib -lmint -lgcc
INCS =

OBJS = pckeys.o

all: pckeys.tos
pckeys.tos: $(OBJS)
	$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)

pckeys.o: pckeys.c
	$(CC) $(CFLAGS) $(INCS) -c $<

clean:
	rm -f pckeys.tos core *.o *~
