This commit is contained in:
2021-05-29 12:21:57 +02:00
commit c11257ae3d
8 changed files with 110 additions and 0 deletions

24
Makefile Normal file
View File

@ -0,0 +1,24 @@
CC=gcc
CFLAGS=-Wall
LDFLAGS=
REFCNT:=$(shell git rev-list --all --count)
VERSION:=$(shell cat VERSION)
.PHONY: all
all: wsort
wsort: wsort.o readwords.o
$(CC) -o $@ $(LDFLAGS) $^
version.o: version.c VERSION
$(CC) -DD_REFCNT=$(REFCNT) -DD_VERSION=\"$(VERSION)\" -c $<
.c.o:
$(CC) $(CFLAGS) -c $<
.PHONY: clean
clean:
-rm -f *.o wsort