Skip to content

Commit

Permalink
update compile order
Browse files Browse the repository at this point in the history
  • Loading branch information
ColleagueRiley committed Aug 31, 2024
1 parent 0a3bba9 commit 11c614c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ ifneq (,$(filter $(CC),emcc))
CC=emcc
endif

LIBS += -I./include -I./include/RSGL libs.o
LIBS += -I./include -I./include/RSGL $(LIBS)

all: source/main.c libs.o
$(CC) source/main.c $(LINK_GL1) $(LIBS) -o RSGLDoom$(EXT)
$(CC) $^ $(LINK_GL1) $(LIBS) -o RSGLDoom$(EXT)

libs.o: source/libs.c
$(CC) source/libs.c -c -I./include -I./include/RSGL
$(CC) $^ -c -I./include -I./include/RSGL

clean:
rm -f *.exe RSGLdoom *.o
Expand Down

0 comments on commit 11c614c

Please sign in to comment.