Skip to content

Commit

Permalink
use a .c for compiling the object (for msvc)
Browse files Browse the repository at this point in the history
  • Loading branch information
ColleagueRiley committed Aug 5, 2024
1 parent 51b7c93 commit 768bcf9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,10 @@ endif

RGFW$(OBJ_FILE): RGFW.h
make initwayland
$(CC) -x c $(CUSTOM_CFLAGS) -c RGFW.h -D RGFW_IMPLEMENTATION -fPIC -D RGFW_EXPORT
#$(CC) -x c $(CUSTOM_CFLAGS) -c RGFW.h -D RGFW_IMPLEMENTATION -fPIC -D RGFW_EXPORT
cp RGFW.h RGFW.c
$(CC) $(CUSTOM_CFLAGS) -c RGFW.c -D RGFW_IMPLEMENTATION -fPIC -D RGFW_EXPORT
rm RGFW.c

libRGFW$(LIB_EXT): RGFW.h RGFW$(OBJ_FILE)
make RGFW$(OBJ_FILE)
Expand Down

0 comments on commit 768bcf9

Please sign in to comment.