-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
36 lines (30 loc) · 870 Bytes
/
makefile
File metadata and controls
36 lines (30 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
TARGET = app
SRC_DIR = src
RELEASE_DIR = bin
LIB_DIR = lib_raylib
SOURCES = \
$(SRC_DIR)/main.c \
$(SRC_DIR)/entities/player.c \
$(SRC_DIR)/entities/npc.c \
$(SRC_DIR)/maps/mapa1.c \
$(SRC_DIR)/maps/mapa2.c \
$(SRC_DIR)/maps/mapa3.c \
$(SRC_DIR)/maps/map_list.c \
$(SRC_DIR)/gemini.c \
$(SRC_DIR)/utils.c \
$(SRC_DIR)/cJSON.c \
$(SRC_DIR)/chart.c \
$(SRC_DIR)/dialogue.c
CFLAGS = -Wall -std=c99 -I$(LIB_DIR) -I$(SRC_DIR) -Icurl/include
LIBS = -L$(LIB_DIR) -Lcurl/lib -lraylib -lcurl -lopengl32 -lgdi32 -lwinmm
$(RELEASE_DIR)/$(TARGET).exe: $(SOURCES)
@mkdir -p $(RELEASE_DIR)
gcc $(CFLAGS) $^ -o $@ $(LIBS)
-@cp $(LIB_DIR)/raylib.dll $(RELEASE_DIR)/
-@cp /bin/libcurl.dll $(RELEASE_DIR)/
@echo "Compilacao concluida. DLLs copiadas para bin/"
run: $(RELEASE_DIR)/$(TARGET).exe
./bin/app.exe
clean:
rm -rf $(RELEASE_DIR)/app.exe
.PHONY: run clean