Skip to content

Commit

Permalink
Update Makefile.gcw0
Browse files Browse the repository at this point in the history
  • Loading branch information
zear committed May 16, 2015
1 parent 56c7d91 commit 8a3fb71
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Makefile.gcw0
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ STRIP := /opt/gcw0-toolchain/usr/bin/mipsel-linux-strip
SYSROOT := $(shell $(CC) --print-sysroot)
CFLAGS := $(shell $(SYSROOT)/usr/bin/sdl-config --cflags) -Wall -g -DWITH_HOME_DIR
LDFLAGS := $(shell $(SYSROOT)/usr/bin/sdl-config --libs) -lSDL_image -lSDL_mixer -lz -lm
TARGET := meritous.elf

ifdef DEBUG
CFLAGS += -ggdb
Expand All @@ -48,10 +49,11 @@ default: meritous
${CC} -c -o $@ $? ${CFLAGS}

meritous: ${OBJS}
${CC} -o $@ $+ ${LDFLAGS}
${CC} -o ${TARGET} $+ ${LDFLAGS}
ifndef DEBUG
${STRIP} $@
${STRIP} ${TARGET}
endif

clean:
rm -f ${OBJS}
rm -f ${OBJS} ${TARGET}

0 comments on commit 8a3fb71

Please sign in to comment.