fix to work on OS X

This commit is contained in:
Sean C. Rhea
2007-05-07 21:09:31 +00:00
parent abdf74ca5a
commit 27bf8ae1ef

View File

@@ -18,11 +18,18 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#
OS=$(shell uname)
QT=$(subst /bin/qmake,,$(shell which qmake))
CC=gcc
CFLAGS=-g -W -Wall -Werror -ansi -pedantic -std=c99
CMDS=ptdl ptpk ptunpk cpint
LIBS=../lib/libgc.a ../cpint/libcpint.a ../srm/libsrm.a
LIBRARIES=-lm -lQtCore
LIBRARIES=-lm
ifeq ($(OS),Darwin)
LIBRARIES+=-lm -F$(QT)/lib -framework QtCore
else
LIBRARIES+=-L$(QT)/lib -lQtCore
endif
INCLUDES=-I../lib -I../cpint
all: $(CMDS)