Mercurial > repos > blastem
comparison Makefile @ 682:7ed1dbb48f61
Merge
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 04 Jan 2015 23:35:55 -0800 |
parents | b68039895627 6b248602ab84 |
children | 019d27995e32 |
comparison
equal
deleted
inserted
replaced
681:e26640daf1ae | 682:7ed1dbb48f61 |
---|---|
1 ifndef OS | |
2 OS:=$(shell uname -s) | |
3 endif | |
4 | |
1 ifdef NOGL | 5 ifdef NOGL |
2 LIBS=sdl | 6 LIBS=sdl |
3 else | 7 else |
8 ifeq ($(OS),Darwin) | |
9 LIBS=sdl glew | |
10 else | |
4 LIBS=sdl glew gl | 11 LIBS=sdl glew gl |
5 endif | 12 endif |
13 endif | |
14 | |
6 ifdef DEBUG | 15 ifdef DEBUG |
7 CFLAGS:=-ggdb -std=gnu99 $(shell pkg-config --cflags-only-I $(LIBS)) -Wreturn-type -Werror=return-type -Werror=implicit-function-declaration | 16 CFLAGS:=-ggdb -std=gnu99 $(shell pkg-config --cflags-only-I $(LIBS)) -Wreturn-type -Werror=return-type -Werror=implicit-function-declaration |
8 LDFLAGS:=-ggdb -lm $(shell pkg-config --libs $(LIBS)) | 17 LDFLAGS:=-ggdb -lm $(shell pkg-config --libs $(LIBS)) |
9 else | 18 else |
10 CFLAGS:=-O2 -flto -std=gnu99 $(shell pkg-config --cflags-only-I $(LIBS)) -Wreturn-type -Werror=return-type -Werror=implicit-function-declaration | 19 CFLAGS:=-O2 -flto -std=gnu99 $(shell pkg-config --cflags-only-I $(LIBS)) -Wreturn-type -Werror=return-type -Werror=implicit-function-declaration |
31 | 40 |
32 ifndef CPU | 41 ifndef CPU |
33 CPU:=$(shell uname -m) | 42 CPU:=$(shell uname -m) |
34 endif | 43 endif |
35 | 44 |
36 | 45 ifeq ($(OS),Darwin) |
46 LDFLAGS+= -framework OpenGL | |
47 endif | |
37 | 48 |
38 TRANSOBJS=gen.o backend.o mem.o | 49 TRANSOBJS=gen.o backend.o mem.o |
39 M68KOBJS=68kinst.o m68k_core.o | 50 M68KOBJS=68kinst.o m68k_core.o |
40 ifeq ($(CPU),x86_64) | 51 ifeq ($(CPU),x86_64) |
41 M68KOBJS+= runtime.o m68k_core_x86.o | 52 M68KOBJS+= runtime.o m68k_core_x86.o |