aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 0a0f1a557526d09cef504c1967c546e3af07f3fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$(TARGET): $(SRCS)
	$(CC) $(CFLAGS) -o $(TARGET) $(SRCS)

TARGET = kl
SRCS = main.c

kl: *.c
	gcc *.c -o kl

clean:
	rm -rf *.o kl

all: $(TARGET)

install:
	install -d $(DESTDIR)$(PREFIX)/bin

	install -m 755 $(TARGET) $(DESTDIR)$(PREFIX)/bin/$(TARGET)

format:
	clang-format -i *.c *.h