From: obi Date: Fri, 9 Aug 2002 03:11:32 +0000 (+0000) Subject: ein Makefile, ein Makefile, juchuuuu! :) X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;ds=sidebyside;p=my-code%2Ftriang.git ein Makefile, ein Makefile, juchuuuu! :) --- diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..53c370c --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +#!/usr/bin/make + +CC = gcc +CFLAGS = -O2 +CPPFLAGS = -Wall +LDFLAGS = -s -lm + +PREFIX = /usr/local + +TARGETS = triang + +all: $(TARGETS) + +install: $(TARGETS) + install -m 755 $(TARGETS) $(PREFIX)/bin + +uninstall: + cd $(PREFIX)/bin && rm -f $(TARGETS) + +clean: + rm -f $(TARGETS) *.o *~ +