How to convert makefile to Xcode compatible configuration?

I am moving away from the simple use of a Makefile and a text editor. I would like to convert my Makefile so that I can use Xcode correctly. How can I convert this makefile?

all:
    gcc engine.c $(MRUBY_HOME)/build/host/lib/libmruby.a -I $(MRUBY_HOME)/include $(shell pkg-config --cflags --libs sdl2)
+4
source share
1 answer

nothing prevents you from using makefile in Xcode. just configure your target as an external build system and fill in the "Build Tool" setting using the path to create (/ usr / bin / make) and the "Directory" field, pointing to the directory in your project containing the make file. you can fill in the "Arguments" field with any arguments needed for your makefile; this can be done using Xcode variables such as $(ACTION)(build, cleanup) and $(CONFIGURATION)(debug, release).

makefile, " " . "run script". " "; " c flags", .

+3

All Articles