Skip to content

Instantly share code, notes, and snippets.

@IGI-111
Created October 10, 2014 08:11
Show Gist options
  • Save IGI-111/5ba7d2f81b6fd713e839 to your computer and use it in GitHub Desktop.
Save IGI-111/5ba7d2f81b6fd713e839 to your computer and use it in GitHub Desktop.
simple makefile for system programming
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