Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Makefile
- # $^ is "all of pererequisites of this rule" - must use when using wildcards, or *, as prereqs
- # $? is "all out-of-date prerequisites"
- # $@ is "the target of this rule"
- # $< is "first prereq"
- #
- # % is "a make wildcard"
- # * is "a shell wildcard"
- # false dependancy demo - can be useful sometimes.
- #
- # data-1-1.dat: stats.py
- # touch $@
- #
- # data-1-2.dat : stats.py
- # touch $@
- #
- # Pattern rule - note that make only uses this if there is no other rule to be used.
- # - note that make does not inherently force the target to be updated
- # in such a file.
- # - Likewise when make sees two or more pattern rules, it just uses
- # the first pattern rule it finds
- #
- # figure-%: figure-data-%.dat
- # stats.py $^
- #
- #
- #
- COMPILER = g++
- COMP_FLAGS = -std=c++11 -Wall
- SFML_DLLS_LINKED = -lsfml-graphics -lsfml-window -lsfml-system
- GL_DLLS_LINKED = -lopengl32 -lGLU32
- ALL_DLLS_LINKED = $(SFML_DLLS_LINKED) $(GL_DLLS_LINKED)
- LIBRARY_PATH = D:\Dropbox\Projects\include
- PROJECT_PATH = D:\Dropbox\Projects\active\sfmlgame
- all: main.exe
- main.exe: main.cpp
- $(COMPILER) $< -o $@ $(COMP_FLAGS) -I"$(LIBRARY_PATH)" -I"$(PROJECT_PATH)" $(ALL_DLLS_LINKED)$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement