Skip to content

Instantly share code, notes, and snippets.

@alkavan
Created December 7, 2012 18:44
Show Gist options
  • Save alkavan/4235420 to your computer and use it in GitHub Desktop.
Save alkavan/4235420 to your computer and use it in GitHub Desktop.
basic makefile for c++ project
# basic makefile for c++ project
SOURCE=main.cpp your_include.h
MYPROGRAM=shellgap
MYINCLUDES=
MYLIBRARIES=
CC=g++
#------------------------------------------------------------------------------
all: $(MYPROGRAM)
$(MYPROGRAM): $(SOURCE)
# $(CC) -I$(MYINCLUDES) $(SOURCE) -o$(MYPROGRAM) -l$(MYLIBRARIES)
$(CC) $(SOURCE) -o$(MYPROGRAM)
clean:
rm -f $(MYPROGRAM)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment