-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (29 loc) · 1.08 KB
/
Makefile
File metadata and controls
37 lines (29 loc) · 1.08 KB
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
37
EXE_NAME = build/Windows/Mantra.exe
CC = gcc
CFLAGS = -mno-cygwin -O2 -Wall -Iinclude -Isrc -DALLEGRO_STATICLINK -DMANTRA_WINDOWS -c
INT_LIBRARIES = -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lole32 -ldinput -lddraw -ldxguid -lwinmm -ldsound -lmoldname -lmsvcrt
OUR_LIBRARIES = ./libs/windows/libaldmb.a ./libs/windows/libdumb.a ./libs/windows/libalfont.a ./libs/windows/liballeg_s.a
LDFLAGS = -Wl,--subsystem,windows -mno-cygwin -Wall
SRCFILES = src/Dialogs.c \
src/Enemies.c \
src/EnemyCollision.c \
src/EnemyUpdate.c \
src/GameConstants.c \
src/Input.c \
src/LoadData.c \
src/main.c \
src/Map.c \
src/OpeningScreen.c \
src/Saric.c \
src/Sound.c \
src/Tests.c \
src/Utils.c \
OBJFILES = $(SRCFILES:.c=.o)
%.o: %.c
$(CC) $(CFLAGS) -o $@ $<
# @(echo "Compiling $<")
all: $(EXE_NAME)
$(EXE_NAME): $(OBJFILES)
$(CC) $(LDFLAGS) -o $(EXE_NAME) $(OBJFILES) $(OUR_LIBRARIES) $(INT_LIBRARIES)
@(cp dats/* build/Windows)
@(echo "All done! Enjoy Mantra!")