Update Makefile

This commit is contained in:
Symisc Systems 2018-02-19 02:07:31 +01:00 committed by GitHub
parent ad5117a74f
commit 39ac965600
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 11 deletions

View File

@ -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