Improve compilation on Ubuntu derivative #7
Put $(LIBS) after our own objects reference: https://stackoverflow.com/a/2487723
This commit is contained in:
parent
4e1275fbd3
commit
5d3e9343d6
1 changed files with 4 additions and 4 deletions
8
Makefile
8
Makefile
|
@ -58,16 +58,16 @@ all: dist/mkcard dist/checkrom dist/dump2rom dist/x48ng
|
|||
|
||||
# Binaries
|
||||
dist/mkcard: src/tools/mkcard.o
|
||||
$(CC) $(CFLAGS) $(LIBS) $^ -o $@
|
||||
$(CC) $^ -o $@ $(CFLAGS) $(LIBS)
|
||||
|
||||
dist/dump2rom: src/tools/dump2rom.o
|
||||
$(CC) $(CFLAGS) $(LIBS) $^ -o $@
|
||||
$(CC) $^ -o $@ $(CFLAGS) $(LIBS)
|
||||
|
||||
dist/checkrom: src/tools/checkrom.o src/romio.o
|
||||
$(CC) $(CFLAGS) $(LIBS) $^ -o $@
|
||||
$(CC) $^ -o $@ $(CFLAGS) $(LIBS)
|
||||
|
||||
dist/x48ng: $(DOTOS)
|
||||
$(CC) $(CFLAGS) $(LIBS) $^ -o $@
|
||||
$(CC) $^ -o $@ $(CFLAGS) $(LIBS)
|
||||
|
||||
# Cleaning
|
||||
clean:
|
||||
|
|
Loading…
Reference in a new issue