summaryrefslogtreecommitdiff
path: root/Makefile
blob: 1951f715881e1e00f3d3347dd4281d58fffb7ce2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
.POSIX:

# This Makefile was generated by maje
# See https://gitlab.com/jkaivo/maje/ for more information
# Do not edit this Makefile by hand

CC=c99
LD=$(CC)
CFLAGS=-Wall -Wextra -Wpedantic -Werror -g
LDFLAGS=
LDLIBS=
SRCDIR=.
OBJDIR=.
BINDIR=$(OBJDIR)
DESTDIR=/usr/local

all: $(BINDIR)/touch

clean:
	rm -f $(BINDIR)/touch $(OBJDIR)/*.o

install: $(BINDIR)/touch
	cp $(BINDIR)/touch $(DESTDIR)/bin

$(BINDIR)/touch: $(OBJDIR)/touch.o
$(OBJDIR)/touch.o: $(SRCDIR)/touch.c
	$(CC) $(CFLAGS) -o $@ -c $(SRCDIR)/touch.c

$(BINDIR)/touch:
	$(LD) $(LDFLAGS) -o $@ $(OBJDIR)/*.o $(LDLIBS)