update to build
This commit is contained in:
parent
bbf248bb9c
commit
c56e33f23a
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -44,6 +44,7 @@
|
||||
"stdexcept": "cpp",
|
||||
"streambuf": "cpp",
|
||||
"cinttypes": "cpp",
|
||||
"typeinfo": "cpp"
|
||||
"typeinfo": "cpp",
|
||||
"ctime": "cpp"
|
||||
}
|
||||
}
|
7
Makefile
7
Makefile
@ -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
|
Loading…
x
Reference in New Issue
Block a user