1
0
mirror of https://github.com/aap/pdp6.git synced 2026-01-19 09:37:47 +00:00
aap.pdp6/emu/Makefile
2019-02-24 20:41:25 +01:00

20 lines
637 B
Makefile

SRC=main.c util.c cmd.c apr.c mem.c tty.c pt.c dc.c dt.c netmem.c ../tools/pdp6common.c
H=pdp6.h ../tools/pdp6common.h
# clang
#CFLAGS= -Wno-shift-op-parentheses -Wno-logical-op-parentheses \
# -Wno-bitwise-op-parentheses
CFLAGS= -g -Wall -Wno-parentheses -fno-diagnostics-show-caret
SDLFLAGS=`sdl-config --cflags` `pkg-config SDL_image --cflags`
LIBS=`sdl-config --libs` `pkg-config SDL_image --libs` -lpthread
pdp6: $(SRC) $(H)
$(CC) -o $@ $(CFLAGS) $(SDLFLAGS) $(SRC) $(LIBS)
test_dc: test_dc.c dc.c $(H)
$(CC) -o $@ $(CFLAGS) test_dc.c dc.c
test_dt: test_dt.c dc.c dt.c $(H)
$(CC) -o $@ $(CFLAGS) test_dt.c dc.c dt.c