- Timestamp:
- 07/17/2017 05:07:53 AM (7 years ago)
- Branches:
- master
- Children:
- 9373f5e
- Parents:
- 3326515
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r3326515 rff8d800 1 FLAGS := -std=c99 -O2 -gdwarf-4 1 SDL2 := /opt/sdl2 2 SDL2_INC := $(SDL2)/include 3 SDL2_LIB := $(SDL2)/lib 4 5 FLAGS := -std=c99 -pthread -O2 -gdwarf-4 2 6 3 7 FLAGS_CPU := $(FLAGS) -I cpu -I build … … 8 12 -Wpedantic -Wconversion -Wsign-conversion -Wshadow \ 9 13 -Wstrict-prototypes -Wmissing-declarations -Wredundant-decls \ 10 -I cpu -I emu -I build 14 -I cpu -I emu -I build -I $(SDL2_INC) 11 15 12 16 FLAGS_LNK := $(FLAGS) -Wall -Wextra … … 45 49 gcc $(FLAGS_CPU) -c -o $@ $< 46 50 47 EMU_C := main.c 51 EMU_C := main.c cpu.c sdl.c 48 52 EMU_O := $(EMU_C:.c=.o) 49 53 EMU_OP := $(EMU_O:%=build/%) … … 53 57 54 58 buchla: $(CPU_OP) $(GEN_OP) $(EMU_OP) 55 gcc $(FLAGS_LNK) -o buchla $(CPU_OP) $(GEN_OP) $(EMU_OP) 59 gcc $(FLAGS_LNK) -o buchla \ 60 $(CPU_OP) $(GEN_OP) $(EMU_OP) \ 61 $(SDL2_LIB)/libSDL2.a -ldl -lm 62 63 run: buchla 64 ./buchla 56 65 57 66 val: buchla 58 67 valgrind --leak-resolution=high --track-fds=yes --leak-check=full \ 59 --show-reachable=yes ./buchla68 --show-reachable=yes --suppressions=buchla.supp ./buchla 60 69 61 70 clean:
Note:
See TracChangeset
for help on using the changeset viewer.