Add initial cpair functionality

This commit is contained in:
2018-12-08 22:34:47 +01:00
parent 98015cb8b5
commit ccfbf9e1ed
5 changed files with 151 additions and 0 deletions

18
cpair/Makefile Normal file
View File

@@ -0,0 +1,18 @@
CC = gcc
CFLAGS = -std=c99 -pedantic -Wall -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_POSIX_C_SOURCE=200809L -g -c
TARGET = cpair
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)
$(RM) *.tgz
package:
tar -cvzf mygrep.tgz $(TARGET).c Makefile