mode7: fix lflags ordering in Makefile

This commit is contained in:
Vince Weaver 2019-10-27 13:20:14 -04:00
parent 0d05d2f156
commit d7f7c5921d
2 changed files with 4 additions and 5 deletions

View File

@ -13,7 +13,7 @@ all: bounce fixed_point lookup_tables mode7_demo text_demo
####
fixed_point: fixed_point.o
$(CC) $(LFLAGS) -o fixed_point fixed_point.o
$(CC) -o fixed_point fixed_point.o $(LFLAGS)
fixed_point.o: fixed_point.c
$(CC) $(CFLAGS) -c fixed_point.c
@ -21,7 +21,7 @@ fixed_point.o: fixed_point.c
####
lookup_tables: lookup_tables.o
$(CC) $(LFLAGS) -o lookup_tables lookup_tables.o
$(CC) -o lookup_tables lookup_tables.o $(LFLAGS)
lookup_tables.o: lookup_tables.c
$(CC) $(CFLAGS) -c lookup_tables.c
@ -29,8 +29,7 @@ lookup_tables.o: lookup_tables.c
###
mode7_demo: mode7_demo.o $(GR_SIM)
$(CC) $(LFLAGS) $(SDL_LIBS) -o mode7_demo mode7_demo.o \
$(GR_SIM)
$(CC) -o mode7_demo mode7_demo.o $(GR_SIM) $(LFLAGS) $(SDL_LIBS)
mode7_demo.o: mode7_demo.c
$(CC) $(CFLAGS) -c mode7_demo.c
@ -39,7 +38,7 @@ mode7_demo.o: mode7_demo.c
###
text_demo: text_demo.o $(GR_SIM)
$(CC) $(LFLAGS) $(SDL_LIBS) -o text_demo text_demo.o $(GR_SIM)
$(CC) -o text_demo text_demo.o $(GR_SIM) $(LFLAGS) $(SDL_LIBS)
text_demo.o: text_demo.c
$(CC) $(CFLAGS) -c text_demo.c