Improve compilation on Ubuntu derivative #7

Put $(LIBS) after our own objects

reference: https://stackoverflow.com/a/2487723
This commit is contained in:
Gwenhael Le Moine 2023-06-02 22:05:56 +02:00
parent 4e1275fbd3
commit 5d3e9343d6
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -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: