uaveiro-leci/3ano/1semestre/so/aula01/as-library/Makefile

23 lines
284 B
Makefile
Raw Normal View History

.PHONY: all clean cleanall
CC = g++
CXXFLAGS = -Wall -Wfatal-errors -ggdb -pthread
LDFLAGS = -pthread -lm
TARGET = main
all: $(TARGET)
$(TARGET): main.o linked-list.o
g++ -o $@ $^ $(LDFLAGS)
$(TARGET): linked-list.h
clean:
rm -f *.o *~
cleanall: clean
rm -f $(TARGET)