dcpu16/Makefile

22 lines
459 B
Makefile
Raw Normal View History

2019-10-19 08:31:07 +00:00
.PHONY: all clean reformat
CFLAGS=-Wall -Werror -pedantic -std=c99 -g3 # -O2 -mtune=native
CFLAGS+=-DDEV_DEBUG -DDEV_LEM1802 -DDEV_CLOCK
CFLAGS+=$(shell pkg-config --cflags sdl2)
LDLIBS+=$(shell pkg-config --libs sdl2)
2019-10-19 08:31:07 +00:00
REFORMAT=astyle --style=linux
DEVICES=$(patsubst %.c,%.o,$(wildcard dev_*.c))
2019-10-19 08:31:07 +00:00
all: dsim
dsim: dsim.o device.o $(DEVICES)
2019-10-19 08:31:07 +00:00
clean:
2019-10-19 12:46:18 +00:00
$(RM) *~ *% *.o *.orig
$(RM) dsim
2019-10-19 08:31:07 +00:00
reformat: $(wildcard *.c)
2019-10-19 12:46:18 +00:00
$(REFORMAT) $^
2019-10-19 08:31:07 +00:00
2019-10-19 12:46:18 +00:00
# vim:noet:sw=8:ts=8:sts=8: