< index < 0. Compiling with libtcod |
===================================== |
MY_OBJS=$(TEMP)/src1.o $(TEMP)/src2.o $(TEMP)/src3.o myroguelike : $(MY_OBJS) libtcod.a $(CC) $(MY_OBJS) $(CFLAGS) -o $@ -L. -ltcod $(ZLIB_LIBS) $(PNG_LIBS) $(SDL_LIBS)Build using 'make -f makefile-samples-osx myroguelike' to get a command-line build of your application. To create a double-clickable application, create a new Info.plist file for your binary (see the osx directory for examples), and add the following to the makefile:
myroguelike.app : myroguelike mkdir -p myroguelike.app/Contents/MacOS cp osx/myroguelike_Info.plist myroguelike.app/Contents/Info.plist cp myroguelike myroguelike.app/Contents/MacOS/Build using 'make -f makefile-samples-osx myroguelike.app', and you should have a self-contained application bundle that will work on any OSX system.
#ifdef __APPLE__ TCOD_sys_startup(); #endif //access system info.... bool success = TCOD_sys_init(....