Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - oopi

Pages: [1]
1
General / Linux sfml-app to OSX using makefile
« on: December 16, 2013, 03:05:11 pm »
Hi everybody!

I participated to a project where we wrote game using SFML-2.1 in linux environment. While under deadlines I focused mainly on making things that helped to get the project to its destination, but now, past the deadlines, I would like to continue the development with my mac. I have got SFML working through xcode, but in our project we used makefiles and I would like to continue using them. So how should i modify the linux makefile to get things working in OSX?

Makefile:

CC=g++
CFLAGS=-c -std=c++0x -pedantic -Wall -Wextra -D_GLIBCXX_DEBUG -g
LDFLAGS=
SFML=-lsfml-audio -lsfml-graphics -lsfml-window -lsfml-system -lsfml-network
DIRS=-I .
SOURCES=...
MAIN=main.cc
TESTS=...
SOURCES_O=$(TMP:.cpp=.o)
MAIN_O=$(MAIN:.cc=.o)
TESTS_O=$(TESTS:.cc=.o)
EXECUTABLE=game
...


I tried different CFLAGS and things like SFML=-framework SFML -framework sfml-audio -framework sfml-system -framework sfml-window -framework sfml-graphics -framework sfml, but no luck yet. If you are an OSX user, could you share your makefile set up with SFML?

Pages: [1]
anything