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

CC = ${CROSS_COMPILE}gcc
LD = ${CROSS_COMPILE}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