mirror of
https://github.com/libretro/RetroArch
synced 2024-12-29 12:31:05 +00:00
29 lines
552 B
Makefile
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)
|