summaryrefslogtreecommitdiffstats
path: root/collage/Makefile
blob: 47ce210f8e11d5efd3649f2c41af90aa27d49dd7 (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
31
32
include ../Makefile.inc

CFLAGS = -Wall -g -O2
LDFLAGS = -g
LOADLIBES = -L../isys -lz -lisys -lresolv -lpopt

ifeq (.depend,$(wildcard .depend))
TARGET=all
else
TARGET=depend all
endif

everything: $(TARGET)

all:	collage

collage:	collage.o commands.o idmap.o ls.o

install:
	mkdir -p $(DESTDIR)/$(RUNTIMEDIR)
	install -s collage $(DESTDIR)/$(RUNTIMEDIR)
	install mkcollagelinks $(DESTDIR)/$(RUNTIMEDIR)

clean:
	rm -f collage *.o

depend:
	$(CPP) -M $(CFLAGS) *.c > .depend

ifeq (.depend,$(wildcard .depend))
include .depend
endif