update to build

This commit is contained in:
Nikola Petrov 2024-02-22 00:45:30 +01:00
parent bbf248bb9c
commit c56e33f23a
2 changed files with 7 additions and 3 deletions

View File

@ -44,6 +44,7 @@
"stdexcept": "cpp",
"streambuf": "cpp",
"cinttypes": "cpp",
"typeinfo": "cpp"
"typeinfo": "cpp",
"ctime": "cpp"
}
}

View File

@ -5,7 +5,7 @@ RAYOBJECTS= obj/rcore.o obj/rshapes.o obj/rtextures.o obj/rtext.o obj/utils.o ob
#RAYOPT= -O3
RAYOPT= -ggdb
CPPFLAGS= -std=c++23
CFLAGS= -std=c++23
all: setup main run
@ -54,10 +54,13 @@ $(OBJDIR)/%.o: $(SRCDIR)/%.cpp
main: main.cpp setup $(RAYOBJECTS) $(OBJECTS)
g++ main.cpp $(RAYOBJECTS) $(OBJECTS) -o main $(RAYOPT) $(RAYINCLUDE) $(INCLUDE) $(CFLAGS)
example: example.cpp setup $(RAYOBJECTS) $(OBJECTS)
g++ example.cpp $(RAYOBJECTS) $(OBJECTS) -o example $(RAYOPT) $(RAYINCLUDE) $(INCLUDE) $(CFLAGS)
run: main
./main
clean:
rm -rf obj
rm -rf raylib
rm main
rm main example