-
-
Save ixtli/3001717 to your computer and use it in GitHub Desktop.
Example Q&D makefile. untested.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CFLAGS="-g -Wall" | |
DEPS="foo.o bar.o baz.o" | |
TARGET=progname | |
.PHONY: clean all | |
$(TARGET): $(DEPS) | |
$(CXX) -o $(TARGET) $(CFLAGS) $(CXXFLAGS) $(DEPS) | |
clean: | |
rm $(TARGET) $(DEPS) | |
all: $(TARGET) |
pi@raspberrypi:~/rpg$ make
make: *** No rule to make target "main.o', needed by
rpg'. Stop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CFLAGS+=-DSTANDALONE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -Wall -g -DHAVE_LIBOPENMAX=2 -DOMX -DOMX_SKIP64BIT -ftree-vectorize -pipe -DUSE_EXTERNAL_OMX -DHAVE_LIBBCM_HOST -DUSE_EXTERNAL_LIBBCM_HOST -DUSE_VCHIQ_ARM -Wno-psabi
LDFLAGS+=-L$(SDKSTAGE)/opt/vc/lib/ -lGLESv2 -lEGL -lopenmaxil -lbcm_host -lvcos -lvchiq_arm /opt/vc/src/hello_pi/libs/ilclient/libilclient.a
INCLUDES+=-I$(SDKSTAGE)/opt/vc/include/ -I$(SDKSTAGE)/opt/vc/include/interface/vcos/pthreads -I./ -I/opt/vc/src/hello_pi/libs/ilclient -I/opt/vc/src/hello_pi/libs/vgfont
DEPS="main.o matrix.o glWrapper.o bufferManager.o shaderManager.o"
TARGET=rpg
.PHONY: clean all
clean:$(TARGET) $ (DEPS)
rm
all: $(TARGET)