Last active
August 29, 2015 14:16
-
-
Save hallfox/38fc11858ff99cdc7450 to your computer and use it in GitHub Desktop.
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
CC=#complier | |
CFLAGS=-c -Wall -g | |
LDFLAGS= | |
SOURCES=#source files | |
OBJECTS=$(SOURCES:.cpp=.o) | |
TARGET=#build target | |
all: $(SOURCES) $(TARGET) | |
$(TARGET): $(OBJECTS) | |
$(CC) $(LDFLAGS) $(OBJECTS) -o $@ | |
.cpp.o: | |
$(CC) $(CFLAGS) $< -o $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment