22 lines
459 B
Makefile
22 lines
459 B
Makefile
.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)
|
|
REFORMAT=astyle --style=linux
|
|
DEVICES=$(patsubst %.c,%.o,$(wildcard dev_*.c))
|
|
|
|
all: dsim
|
|
|
|
dsim: dsim.o device.o $(DEVICES)
|
|
|
|
clean:
|
|
$(RM) *~ *% *.o *.orig
|
|
$(RM) dsim
|
|
|
|
reformat: $(wildcard *.c)
|
|
$(REFORMAT) $^
|
|
|
|
# vim:noet:sw=8:ts=8:sts=8:
|