Unverified Commit 817aa7ef authored by gameblabla's avatar gameblabla
Browse files

Update Makefiles

And add another one for the Arcade Mini
parent c838a89a
......@@ -32,14 +32,14 @@
CC = gcc -std=gnu89
LD = gcc
CFLAGS = -g -DSHIFTS_ALLOWED -DEIS_ALLOWED
CFLAGS = -O1 -fno-common -g -DSHIFTS_ALLOWED -DEIS_ALLOWED
# CFLAGS = -O4 -fomit-frame-pointer # -DSHIFTS_ALLOWED
#
# Targets
#
TARGET = bk
TARGET = bk.elf
UTILS = maketape readtape
#
......@@ -73,7 +73,7 @@ icon.c: pngtorgba bk.png
if [ ! -s icon.c ] ; then ./pngtorgba bk.png > icon.c ; fi
$(TARGET): $(OBJS)
$(LD) $(CFLAGS) -o $(TARGET) $(OBJS) /usr/lib/x86_64-linux-gnu/libSDL.so -lpthread
$(LD) $(CFLAGS) -o $(TARGET) $(OBJS) -lSDL -lpthread
readtape: readtape.c
$(CC) $(CFLAGS) -o readtape readtape.c
......
#
# This file is part of 'pdp', a PDP-11 simulator.
#
# For information contact:
#
# Computer Science House
# Attn: Eric Edwards
# Box 861
# 25 Andrews Memorial Drive
# Rochester, NY 14623
#
# Email: mag@potter.csh.rit.edu
# FTP: ftp.csh.rit.edu:/pub/csh/mag/pdp.tar.Z
#
# Copyright 1994, Eric A. Edwards
#
# Permission to use, copy, modify, and distribute this
# software and its documentation for any purpose and without
# fee is hereby granted, provided that the above copyright
# notice appear in all copies. Eric A. Edwards makes no
# representations about the suitability of this software
# for any purpose. It is provided "as is" without expressed
# or implied warranty.
#
# Makefile
#
#
#
# Change as needed
#
CC = /opt/rs97-toolchain/bin/mipsel-linux-gcc -std=gnu89
LD = /opt/rs97-toolchain/bin/mipsel-linux-gcc
CFLAGS = -Ofast -fdata-sections -ffunction-sections -mno-check-zero-division -mno-fp-exceptions -mframe-header-opt -fno-PIC -fno-common -mips32 -fno-PIC -mno-abicalls -mno-interlink-compressed -fsingle-precision-constant
CFLAGS += -DSHIFTS_ALLOWED -DEIS_ALLOWED
LDFLAGS = -lSDL -lm -ldl -lc -Wl,--as-needed -Wl,--gc-sections -flto -s -no-pie
# CFLAGS = -O4 -fomit-frame-pointer # -DSHIFTS_ALLOWED
#
# Targets
#
TARGET = bk.elf
#
# Source and Object Files
#
SRCS = access.c boot.c branch.c conf.c covox.c double.c ea.c itab.c \
main.c service.c ui.c scr.c timer.c tape.c disk.c mouse.c printer.c \
single.c weird.c tty.c io.c timing.c sound.c disas.c serial.c bkplip.c \
terakdisk.c synth.c emu2149.c
OBJS = access.o boot.o branch.o conf.o covox.o double.o ea.o itab.o icon.o \
main.o service.o ui.o scr.o timer.o tape.o disk.o mouse.o printer.o \
single.o weird.o tty.o io.o timing.o sound.o disas.o serial.o bkplip.o \
terakdisk.o synth.o emu2149.o
INCS = defines.h scr.h conf.h emu2149.h emutypes.h
TEXTS = README.html configure.in icon.c
#
# Build Rules
#
everything: $(TARGET)
touch everything
.c.o:
$(CC) -c $(CFLAGS) $<
icon.c: pngtorgba bk.png
touch icon.c
if [ ! -s icon.c ] ; then ./pngtorgba bk.png > icon.c ; fi
$(TARGET): $(OBJS)
$(LD) $(CFLAGS) -o $(TARGET) $(OBJS) $(LDFLAGS)
#
# Cool Utilities
#
clean:
rm -f $(TARGET) $(OBJS) $(UTILS) everything
count:
wc -l $(SRCS)
dist:
tar czvf bk-terak-emu.`date +%Y.%m.%d`.tar.gz \
--exclude CVS $(SRCS) $(INCS) po Rom $(TEXTS) Makefile bk.png
depend:
makedepend -Dlinux=1 -Y $(SRCS) $(INCS)
# DO NOT DELETE
access.o: defines.h
boot.o: defines.h
branch.o: defines.h
conf.o: conf.h defines.h scr.h
covox.o: defines.h
double.o: defines.h
ea.o: defines.h
itab.o: defines.h
main.o: defines.h scr.h
service.o: defines.h
ui.o: defines.h
scr.o: defines.h scr.h
timer.o: defines.h
tape.o: defines.h
disk.o: defines.h
mouse.o: defines.h
printer.o: defines.h
single.o: defines.h
weird.o: defines.h
tty.o: defines.h
io.o: defines.h
timing.o: defines.h
sound.o: defines.h
disas.o: defines.h
serial.o: defines.h
bkplip.o: defines.h
terakdisk.o: defines.h
synth.o: defines.h emu2149.h emutypes.h
emu2149.o: emu2149.h emutypes.h
conf.o: defines.h
emu2149.o: emutypes.h
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment