mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-30 19:48: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:
parent
6acd22492c
commit
66744c0026
@ -2,12 +2,13 @@ EXTOBJS = ../../emul.o ../../libz80/libz80.o
|
|||||||
OBJS = sms.o vdp.o
|
OBJS = sms.o vdp.o
|
||||||
TARGET = sms
|
TARGET = sms
|
||||||
CFLAGS += `pkg-config --cflags xcb`
|
CFLAGS += `pkg-config --cflags xcb`
|
||||||
|
LDFLAGS += `pkg-config --libs xcb`
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: $(TARGET)
|
all: $(TARGET)
|
||||||
|
|
||||||
$(TARGET): $(OBJS) $(EXTOBJS)
|
$(TARGET): $(OBJS) $(EXTOBJS)
|
||||||
$(CC) `pkg-config --libs xcb` $(OBJS) $(EXTOBJS) -o $@
|
$(CC) $(OBJS) $(EXTOBJS) -o $@ $(LDFLAGS)
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
|
@ -65,7 +65,7 @@ void create_window()
|
|||||||
win,
|
win,
|
||||||
screen->root,
|
screen->root,
|
||||||
0, 0,
|
0, 0,
|
||||||
150, 150,
|
500, 500,
|
||||||
10,
|
10,
|
||||||
XCB_WINDOW_CLASS_INPUT_OUTPUT,
|
XCB_WINDOW_CLASS_INPUT_OUTPUT,
|
||||||
screen->root_visual,
|
screen->root_visual,
|
||||||
|
@ -2,12 +2,13 @@ EXTOBJS = ../../emul.o ../../libz80/libz80.o
|
|||||||
OBJS = ti84.o t6a04.o kbd.o
|
OBJS = ti84.o t6a04.o kbd.o
|
||||||
TARGET = ti84
|
TARGET = ti84
|
||||||
CFLAGS += `pkg-config --cflags xcb`
|
CFLAGS += `pkg-config --cflags xcb`
|
||||||
|
LDFLAGS += `pkg-config --libs xcb`
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: $(TARGET)
|
all: $(TARGET)
|
||||||
|
|
||||||
$(TARGET): $(OBJS) $(EXTOBJS)
|
$(TARGET): $(OBJS) $(EXTOBJS)
|
||||||
$(CC) `pkg-config --libs xcb` $(OBJS) $(EXTOBJS) -o $@
|
$(CC) $(OBJS) $(EXTOBJS) -o $@ $(LDFLAGS)
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
|
@ -160,7 +160,7 @@ void create_window()
|
|||||||
win,
|
win,
|
||||||
screen->root,
|
screen->root,
|
||||||
0, 0,
|
0, 0,
|
||||||
150, 150,
|
500, 500,
|
||||||
10,
|
10,
|
||||||
XCB_WINDOW_CLASS_INPUT_OUTPUT,
|
XCB_WINDOW_CLASS_INPUT_OUTPUT,
|
||||||
screen->root_visual,
|
screen->root_visual,
|
||||||
|
Loading…
Reference in New Issue
Block a user