Add Makefile

This commit is contained in:
Juhani Krekelä 2021-04-05 02:16:58 +03:00
parent 7e91a099fe
commit 4da0060cbd
1 changed files with 25 additions and 0 deletions

25
Makefile Normal file
View File

@ -0,0 +1,25 @@
DESTDIR ?=
PREFIX ?= /usr/local
EXEC_PREFIX ?= $(PREFIX)
BINDIR ?= $(EXEC_PREFIX)/bin
CFLAGS ?= -std=gnu11 -Os -g -Wall -Wextra -Werror -pedantic
.SUFFIXES:
.SUFFIXES: .c .o
all: puer.o
puer: puer.o
$(CC) $(LDFLAGS) -o $@ $<
.c.o:
$(CC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $<
clean:
rm -f puer *.o
distclean: clean
.PHONY: all clean distclean
.DEFAULT: all