27 lines
395 B
Makefile
27 lines
395 B
Makefile
|
# Makefile for pastebincl (command-line pastebin) by BASTIAN Théophile (aka Tobast)
|
||
|
|
||
|
CXX=g++
|
||
|
CXXFLAGS=-Wall -Werror -O2
|
||
|
CXXLIBS=-lparameterread
|
||
|
TARGET=pastebincl
|
||
|
OBJS=CurlPost.o func.o main.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)
|
||
|
|