Skip to content

Instantly share code, notes, and snippets.

@menyf
Created October 10, 2018 19:54
Show Gist options
  • Save menyf/ad3aac98ce47f9ad356d71f174fec019 to your computer and use it in GitHub Desktop.
Save menyf/ad3aac98ce47f9ad356d71f174fec019 to your computer and use it in GitHub Desktop.
CFLAGS=-Wall -Werror -std=gnu++98 -pedantic -ggdb3
SRCS=$(wildcard *.cpp)
OBJS=$(patsubst %.cpp, %.o, $(SRCS))
PROGRAM=points
$(PROGRAM): $(OBJS)
g++ $(CFLAGS) -o $@ $(OBJS)
%.o: %.cpp point.h
g++ -c $(CFLAGS) $<
clean:
rm -f $(OBJS) $(PROGRAM) *~ tmp.txt test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment