Remove useless header file, add working Makefile and comments

This commit is contained in:
Ivaylo Ivanov
2018-10-08 12:21:18 +02:00
parent 4d98d13dce
commit eec12ea2ff
3 changed files with 49 additions and 19 deletions

View File

@@ -0,0 +1,14 @@
CC = gcc
CFLAGS = -std=c99 -pedantic -Wall -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_POSIX_C_SOURCE=200809L -g -c
TARGET = mygrep
all: $(TARGET).c
$(CC) $(CFLAGS) $(TARGET).c
$(CC) $(TARGET).o -o $(TARGET)
install:
cp $(TARGET) /usr/local/bin/$(TARGET)
clean:
$(RM) $(TARGET).o
$(RM) $(TARGET)