1
General / Re: How can I pack my shader.glsl .wav files and sfml dll into exe?
« on: November 26, 2023, 06:08:10 pm »
Thank you I did that. But now I am confused about how to pack my resources and sounds file with it as well.
This is my makefile
SFML = -lsfml-graphics -lsfml-window -lsfml-system -lsfml-audio
CC = g++
CFLAGS = -c
DEBUG = -g
objects = boidHelpingFunctions.o boids.o simulation.o main.o
all: FlockingBoids link
FlockingBoids: $(objects)
boidHelpingFunctions.o : FlockingBoids/src/boidHelpingFunctions.cpp FlockingBoids/src/boidHelpingFunctions.h
$(CC) -IsfmlFiles/include $(CFLAGS) FlockingBoids/src/boidHelpingFunctions.cpp
boids.o : FlockingBoids/src/boids.cpp FlockingBoids/src/boids.h
$(CC) -IsfmlFiles/include $(CFLAGS) FlockingBoids/src/boids.cpp
simulation.o : FlockingBoids/src/simulation.cpp FlockingBoids/src/simulation.h
$(CC) -IsfmlFiles/include $(CFLAGS) FlockingBoids/src/simulation.cpp
main.o : FlockingBoids/src/main.cpp
$(CC) -IsfmlFiles/include $(CFLAGS) FlockingBoids/src/main.cpp
link:
$(CC) $(objects) -o run -LsfmlFiles/lib $(SFML)
clean:
rm edit $(objects)
This is my makefile
SFML = -lsfml-graphics -lsfml-window -lsfml-system -lsfml-audio
CC = g++
CFLAGS = -c
DEBUG = -g
objects = boidHelpingFunctions.o boids.o simulation.o main.o
all: FlockingBoids link
FlockingBoids: $(objects)
boidHelpingFunctions.o : FlockingBoids/src/boidHelpingFunctions.cpp FlockingBoids/src/boidHelpingFunctions.h
$(CC) -IsfmlFiles/include $(CFLAGS) FlockingBoids/src/boidHelpingFunctions.cpp
boids.o : FlockingBoids/src/boids.cpp FlockingBoids/src/boids.h
$(CC) -IsfmlFiles/include $(CFLAGS) FlockingBoids/src/boids.cpp
simulation.o : FlockingBoids/src/simulation.cpp FlockingBoids/src/simulation.h
$(CC) -IsfmlFiles/include $(CFLAGS) FlockingBoids/src/simulation.cpp
main.o : FlockingBoids/src/main.cpp
$(CC) -IsfmlFiles/include $(CFLAGS) FlockingBoids/src/main.cpp
link:
$(CC) $(objects) -o run -LsfmlFiles/lib $(SFML)
clean:
rm edit $(objects)