1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-12-28 07:58:06 +11:00

emul/hw/(ti|sms): fix compilation with gcc

It seems to be picky about where it accepts its link flags.
This commit is contained in:
Virgil Dupras 2020-01-09 08:33:08 -05:00
parent 6acd22492c
commit 66744c0026
4 changed files with 6 additions and 4 deletions

View File

@ -2,12 +2,13 @@ EXTOBJS = ../../emul.o ../../libz80/libz80.o
OBJS = sms.o vdp.o
TARGET = sms
CFLAGS += `pkg-config --cflags xcb`
LDFLAGS += `pkg-config --libs xcb`
.PHONY: all
all: $(TARGET)
$(TARGET): $(OBJS) $(EXTOBJS)
$(CC) `pkg-config --libs xcb` $(OBJS) $(EXTOBJS) -o $@
$(CC) $(OBJS) $(EXTOBJS) -o $@ $(LDFLAGS)
.PHONY: clean
clean:

View File

@ -65,7 +65,7 @@ void create_window()
win,
screen->root,
0, 0,
150, 150,
500, 500,
10,
XCB_WINDOW_CLASS_INPUT_OUTPUT,
screen->root_visual,

View File

@ -2,12 +2,13 @@ EXTOBJS = ../../emul.o ../../libz80/libz80.o
OBJS = ti84.o t6a04.o kbd.o
TARGET = ti84
CFLAGS += `pkg-config --cflags xcb`
LDFLAGS += `pkg-config --libs xcb`
.PHONY: all
all: $(TARGET)
$(TARGET): $(OBJS) $(EXTOBJS)
$(CC) `pkg-config --libs xcb` $(OBJS) $(EXTOBJS) -o $@
$(CC) $(OBJS) $(EXTOBJS) -o $@ $(LDFLAGS)
.PHONY: clean
clean:

View File

@ -160,7 +160,7 @@ void create_window()
win,
screen->root,
0, 0,
150, 150,
500, 500,
10,
XCB_WINDOW_CLASS_INPUT_OUTPUT,
screen->root_visual,