Skip to content

Instantly share code, notes, and snippets.

@PhiBabin
Created February 19, 2014 02:33
Show Gist options
  • Select an option

  • Save PhiBabin/9085046 to your computer and use it in GitHub Desktop.

Select an option

Save PhiBabin/9085046 to your computer and use it in GitHub Desktop.
makefile
CC=g++
CFLAGS=-c -Wall
LDFLAGS=
SOURCES=programmePrincipal.cpp validationFormat.cpp Date.cpp
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=build/bin
all: $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE): $(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