2020-01-08 22:06:50 -05:00
|
|
|
EXTOBJS = ../../emul.o ../../libz80/libz80.o
|
2020-01-10 21:20:44 -05:00
|
|
|
OBJS = sms.o vdp.o port.o pad.o
|
2020-01-08 22:06:50 -05:00
|
|
|
TARGET = sms
|
|
|
|
CFLAGS += `pkg-config --cflags xcb`
|
2020-01-09 08:33:08 -05:00
|
|
|
LDFLAGS += `pkg-config --libs xcb`
|
2020-01-08 22:06:50 -05:00
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all: $(TARGET)
|
|
|
|
|
|
|
|
$(TARGET): $(OBJS) $(EXTOBJS)
|
2020-01-09 08:33:08 -05:00
|
|
|
$(CC) $(OBJS) $(EXTOBJS) -o $@ $(LDFLAGS)
|
2020-01-08 22:06:50 -05:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
rm -f $(TARGET) $(OBJS)
|
|
|
|
|