ranlin/Makefile

36 lines
461 B
Makefile
Raw Normal View History

2018-01-23 13:17:40 +01:00
CC=gcc
CXX=g++
RM=rm -f
CP=cp
MKDIR=mkdir -p
CPPFLAGS=-Wall -O2 -std=c++11
LDFLAGS=
LDLIBS=
TOOL=ranlin
SRCS=main.cpp
OBJS=$(subst .cpp,.o,$(SRCS))
all: $(TOOL)
$(TOOL): $(OBJS)
$(CXX) $(LDFLAGS) -o $(TOOL) $(LDLIBS) $(OBJS)
depend: .depend
.depend: $(SRCS)
$(RM) ./.depend
$(CXX) $(CPPFLAGS) -MM $^>>./.depend;
clean:
$(RM) $(OBJS)
dist-clean: clean
$(RM) *~ ./.depend $(TOOL)
install:
$(RM) ~/bin/$(TOOL)
$(CP) $(TOOL) ~/bin/
include .depend