Changeset 566ebca in buchla-emu
- Timestamp:
- 07/17/2017 06:05:04 AM (7 years ago)
- Branches:
- master
- Children:
- 0efe297
- Parents:
- 9373f5e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r9373f5e r566ebca 1 OS := $(shell uname) 2 1 3 SDL2 := /opt/sdl2 2 4 SDL2_INC := $(SDL2)/include 3 5 SDL2_LIB := $(SDL2)/lib 4 6 5 FLAGS := -std=c99 - pthread -O2 -gdwarf-47 FLAGS := -std=c99 -O2 -gdwarf-4 6 8 7 FLAGS_CPU := $(FLAGS) - I cpu -I build9 FLAGS_CPU := $(FLAGS) -pthread -I cpu -I build 8 10 9 FLAGS_EMU := $(FLAGS) \11 FLAGS_EMU := $(FLAGS) -pthread \ 10 12 -fno-strict-aliasing -fno-inline -fno-omit-frame-pointer \ 11 13 -Wall -Wextra \ … … 14 16 -I cpu -I emu -I build -I $(SDL2_INC) 15 17 18 ifeq ($(OS), Linux) 19 FLAGS_LNK := $(FLAGS) -pthread -Wall -Wextra 20 LIBS := $(SDL2_LIB)/libSDL2.a -ldl -lm 21 endif 22 23 ifeq ($(OS), Darwin) 16 24 FLAGS_LNK := $(FLAGS) -Wall -Wextra 25 LIBS := $(SDL2_LIB)/libSDL2.a \ 26 -framework AppKit \ 27 -framework AudioToolbox \ 28 -framework Carbon \ 29 -framework CoreAudio \ 30 -framework CoreFoundation \ 31 -framework CoreGraphics \ 32 -framework CoreVideo \ 33 -framework ForceFeedback \ 34 -framework IOKit \ 35 -l iconv 36 endif 17 37 18 38 HEADERS := $(wildcard cpu/*.h) $(wildcard emu/*.h) … … 59 79 gcc $(FLAGS_LNK) -o buchla \ 60 80 $(CPU_OP) $(GEN_OP) $(EMU_OP) \ 61 $( SDL2_LIB)/libSDL2.a -ldl -lm81 $(LIBS) 62 82 63 83 run: buchla
Note:
See TracChangeset
for help on using the changeset viewer.