misc: fixed potential build error in getSDLKey Makefile

This commit is contained in:
punkrockguy318 2011-10-23 05:24:08 +00:00
parent c04111675a
commit 434c91db38
1 changed files with 17 additions and 18 deletions

View File

@ -1,18 +1,17 @@
PREFIX = /usr PREFIX = /usr
OUTFILE = getSDLKey OUTFILE = getSDLKey
CC = gcc CC = g++
OBJS = getSDLKey.o OBJS = getSDLKey.o
LIBS = -lSDL LIBS = $(shell sdl-config --cflags --libs)
all: ${OBJS}
all: ${OBJS} ${CC} -o ${OUTFILE} ${OBJS} ${LIBS}
${CC} -o ${OUTFILE} ${LIBS} ${OBJS}
clean:
clean: rm -f ${OUTFILE} ${OBJS}
rm -f ${OUTFILE} ${OBJS}
install:
install: install -m 755 -D getSDLKey ${PREFIX}/bin/getSDLKey
install -m 755 -D getSDLKey ${PREFIX}/bin/getSDLKey
getSDLKey.o = getSDLKey.cpp
getSDLKey.o = getSDLKey.cpp