Build grep-2.4.

This commit is contained in:
Andrius Štikonas 2021-01-17 16:20:40 +00:00
parent eb650776e9
commit c19a71c11c
4 changed files with 49 additions and 2 deletions

23
sysa/grep-2.4.mk Normal file
View file

@ -0,0 +1,23 @@
PACKAGE=grep
VERSION=2.4
CC = tcc
LD = tcc
AR = tcc -ar
CFLAGS = -DPACKAGE=\"$(PACKAGE)\" \
-DVERSION=\"$(VERSION)\" \
-DHAVE_DIRENT_H=1 \
-DHAVE_UNISTD_H=1
LDFLAGS =
.PHONY: all
GREP_SRC = grep dfa kwset obstack regex stpcpy savedir getopt getopt1 search grepmat
GREP_OBJECTS = $(addprefix src/, $(addsuffix .o, $(GREP_SRC)))
all: grep
grep: $(GREP_OBJECTS)
$(CC) $(CFLAGS) $^ $(LDFLAGS) -o $@