summaryrefslogtreecommitdiffstats
path: root/minislang/Makefile
blob: d23d78c8e15128333758b2bb5ded07a49454dcda (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
33
include ../Makefile.inc

OBJS = sldisply.o slerr.o slgetkey.o slmisc.o slsignal.o slsmg.o    \
	sltermin.o slutty.o slkanji.o

CFLAGS = -fPIC -O2

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

everything: $(TARGET)

all:	libslang.so libslang.a($(OBJS))

libslang.so:	$(OBJS)
	gcc -o $@ -shared -Wl,-soname,libslang.so.1 $(OBJS)

clean:
	rm -f *.o libslang.so libslang.a

install:    libslang.so
	install -s libslang.so $(DESTDIR)/$(RUNTIMEDIR)/libslang.so.1
	ln -s libslang.so.1 $(DESTDIR)/$(RUNTIMEDIR)/libslang-j.so.1

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

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