nyancat

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.inz.fi/nyancat
Log | Files | Refs | README

commit 7e1b33caaf241cd912e05caaaa8063c024b216a9
parent d9a28456b2727bf0d8ca6bf46686fc1aef9c4737
Author: Santtu Lakkala <inz@inz.fi>
Date:   Wed, 23 Feb 2022 16:50:17 +0200

Fix Makefile

Diffstat:
MMakefile | 26++++++++++++++++++++------
1 file changed, 20 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,6 +1,20 @@ -CFLAGS := -W -Wall -std=c99 $(shell pkg-config icu-uc --cflags) -LIBS := $(shell pkg-config icu-uc --libs) -lm -nyancat: nyancat.o - $(CC) -o $@ $^ $(LIBS) -%.o: %.c - $(CC) $(CFLAGS) -c $< -o $@ +.POSIX: + +CFLAGS = -W -Wall -std=c99 $$(pkg-config icu-uc --cflags) +LIBS = $$(pkg-config icu-uc --libs) -lm +SRCS = nyancat.c +OBJS = ${SRCS:.c=.o} +PROGRAM = nyancat + +${PROGRAM}: ${OBJS} + ${CC} -o $@ ${OBJS} ${LIBS} +.c.o: + ${CC} ${CFLAGS} -c $< -o $@ + +clean: + rm -f ${OBJS} + +distclean: clean + rm -f ${PROGRAM} + +.SUFFIXES: .c .o