Created
October 10, 2014 08:11
-
-
Save IGI-111/5ba7d2f81b6fd713e839 to your computer and use it in GitHub Desktop.
simple makefile for system programming
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 = g++ -std=c++0x | |
EXECUTABLE := exo_01.run | |
INCLUDE := include | |
SOURCES := $(wildcard dirsignal/*.cxx) | |
OBJECTS := $(patsubst dirsignal/%.cxx, %.o, $(SOURCES)) | |
all: $(EXECUTABLE) | |
clean : | |
rm -f $(OBJECTS) $(EXECUTABLE) | |
$(EXECUTABLE) : $(OBJECTS) | |
$(CC) -o $(EXECUTABLE) $(OBJECTS) | |
$(OBJECTS) : $(SOURCES) | |
$(CC) -c -I $(INCLUDE) $(SOURCES) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment