From 7ee9910cac61144c91d8154064081208c1f4eb6e Mon Sep 17 00:00:00 2001 From: Maxim V Filimonov Date: Fri, 1 May 2015 23:49:11 +0300 Subject: [PATCH] Makefile: more *BSD-friendly, got rid of mandatory gcc --- Makefile | 11 +++++++---- fiche.c | 0 2 files changed, 7 insertions(+), 4 deletions(-) mode change 100755 => 100644 fiche.c diff --git a/Makefile b/Makefile index f0f7518..215f599 100644 --- a/Makefile +++ b/Makefile @@ -4,12 +4,15 @@ # solusipse.net # ----------------------------------- -CC=gcc -CFLAGS=-pthread -O2 -prefix=/usr/local +CFLAGS+=-pthread -O2 all: fiche.c $(CC) -o fiche $(CFLAGS) fiche.c install: fiche - install -m 0755 fiche $(prefix)/bin + install -m 0755 fiche ${PREFIX}/bin + +clean: + rm -f fiche + +.PHONY: clean diff --git a/fiche.c b/fiche.c old mode 100755 new mode 100644