Last active
December 14, 2015 13:58
-
-
Save lobatt/5097517 to your computer and use it in GitHub Desktop.
Revisions
-
lobatt revised this gist
Mar 6, 2013 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -11,10 +11,10 @@ EXECUTABLE=hello all: $(SOURCES) $(EXECUTABLE) $(EXECUTABLE): $(OBJECTS) $(CC) $(LDFLAGS) $(OBJECTSS) -o $@ .cpp.o: $(CC) $(CFLAGS) $< -o $@ .c.o: $(CC) $(CFLAGS) $< -o $@ -
lobatt created this gist
Mar 6, 2013 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ CC=g++ CFLAGS=-g -c -Wall LDFLAGS= CXX_SOURCES=$(wildcard *.cpp) C_SOURCES=$(wildcard *.c) CXX_OBJECTS=$(SOURCES:.cpp=.o) C_OBJECTS=$(C_SOURCES:.c=.o) OBJECTS=$(C_OBJECTS) $(CXX_OBJECTS) EXECUTABLE=hello all: $(SOURCES) $(EXECUTABLE) $(EXECUTABLE): $(OBJECTS) $(CC) $(LDFLAGS) $(OBJECTSS) -o $@ .cpp.o: $(CC) $(CFLAGS) $< -o $@ .c.o: $(CC) $(CFLAGS) $< -o $@