-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
14 lines (11 loc) · 827 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# target: all - Default target
all:
gcc src/fcc.c src/horizon/horizon_parser.c src/horizon/horizon_compiler.c src/helpers.c src/bp_creator.c src/rom_bp_strings.c -lz -g -o fcc -Wall
gcc src/fcemu.c src/horizon/horizon_parser.c src/horizon/horizon_compiler.c src/horizon/horizon_vm.c src/helpers.c src/fcgui.c -lm -lz -lSDL2 -lSDL2_ttf -g -o fcemu -Wall
# target: release - Build with optimizations and without debug symbols
release:
gcc src/fcc.c src/horizon/horizon_parser.c src/horizon/horizon_compiler.c src/helpers.c src/bp_creator.c src/rom_bp_strings.c -lz -O3 -o fcc
gcc src/fcemu.c src/horizon/horizon_parser.c src/horizon/horizon_compiler.c src/horizon/horizon_vm.c src/helpers.c src/fcgui.c -lm -lz -lSDL2 -lSDL2_ttf -O3 -o fcemu
# target: help - Display available targets
help:
grep -E "^# target:" Makefile