mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-27 11:28:05 +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
|
||||
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:
|
||||
|
@ -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,
|
||||
|
@ -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:
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user