You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
476 B

CC=g++
CFLAGS=-c -g -Wall
CCFLAGS=-g -Wall
prefix=/usr/local
begin : main.o begin.o args.o
$(CC) -o begin $(CCFLAGS) main.o begin.o args.o
main.o: main.cxx begin.o
$(CC) $(CFLAGS) main.cxx
begin.o: begin.cxx begin.hpp
$(CC) $(CFLAGS) begin.cxx
args.o: args.cxx args.hpp
$(CC) $(CFLAGS) args.cxx
install: begin
install -m 0755 begin $(prefix)/bin
uninstall: begin
rm $(prefix)/bin/begin
clean:
rm *.o begin
.PHONY: install
.PHONY: uninstall
.PHONY: clean