summaryrefslogtreecommitdiffstats
path: root/src/Makefile
blob: 047c474ecd9f1e2192ffb8dddc001bc84026a778 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

CC = gcc
LD = gcc

SBIN_TARGETS = mkmntdirs 
TARGET = $(BIN_TARGETS) $(SBIN_TARGETS) $(USR_BIN_TARGETS)

.PHONY: all clean
all: $(TARGET)

%: %.c
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<

clean:
	rm -f $(TARGET) *.o core *~

install: $(TARGET)
	install -m 0755 -d $(DESTDIR)/sbin
	install -m 0755 $(SBIN_TARGETS) $(DESTDIR)/sbin