# Makefile for pastebincl (command-line pastebin) by BASTIAN Théophile (aka Tobast) CXX=g++ CXXFLAGS=-Wall -Werror -O2 CXXLIBS=-lcurl TARGET=pastebincl OBJS=CurlPost.o func.o main.o ParameterRead.o all: $(TARGET) $(TARGET): $(OBJS) $(CXX) $(CXXLIBS) $^ $(CXXFLAGS) -o $@ %.o: %.cpp $(CXX) $(CXXLIBS) -c $< $(CXXFLAGS) -o $@ .PHONY: clean clean: rm -f *.o mrproper: clean rm -f $(TARGET)