RetroArch/deps/libShake/examples/Makefile
2020-11-17 16:13:37 +00:00

29 lines
552 B
Makefile

ifeq ($(PLATFORM), gcw0)
CC := /opt/gcw0-toolchain/usr/bin/mipsel-linux-gcc
STRIP := /opt/gcw0-toolchain/usr/bin/mipsel-linux-strip
endif
CC ?= gcc
STRIP ?= strip
TARGET ?= simple listDevices deviceTest
LDFLAGS := -L.. -lshake
CFLAGS := -fPIC -I../include
SRCDIR := .
ifdef DEBUG
CFLAGS += -ggdb -Wall -Werror -pedantic -std=c89
else
CFLAGS += -O2
endif
.PHONY: all clean
all: $(TARGET)
$(TARGET):
$(CC) $(CFLAGS) $(SRCDIR)/$@.c $(LDFLAGS) -o $@
$(STRIP) $@
clean:
rm -Rf $(TARGET)