From 39ac965600ad6efc1ebc8ab08eda2ac43bcb1ccf Mon Sep 17 00:00:00 2001 From: Symisc Systems Date: Mon, 19 Feb 2018 02:07:31 +0100 Subject: [PATCH] Update Makefile --- Makefile | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 830c092..f47e37a 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,14 @@ -CC=gcc -CFLAGS = -I. -Wall -W -DEPS = ph7.h -OBJ = ph7.o - -%.o: %.c $(DEPS) - $(CC) -c -o $@ $< $(CFLAGS) +CC = gcc +CFLAGS = -I -W -Wall +RM = rm -f -ph7-library.out: $(OBJ) - gcc -o $@ $^ $(CFLAGS) -Ofast -clean : -rm *.o *.asm *.lst *.sym *.rel *.s *.gc* -f *.info +default: all + +all: ph7 + +ph7: ph7.c + $(CC) $(CFLAGS) -o ph7 ph7.c -Ofast + +clean veryclean: + $(RM) Hello