Merge branch 'object-explorer'
[trylid.git] / makefile
blobc8fdb8c96ff909f9217a01c7140cb4608d06ceea
1 ifndef PREFIX
2 PREFIX := /usr
3 endif
6 all: trylid
8 trylid:
9 (cd library/Posix && make)
10 $(CC) -o trylid .c-sources/*.c -lgc -lm
12 install:
13 install -d $(PREFIX)/bin
14 install -d $(PREFIX)/lib
15 install trylid $(PREFIX)/bin
16 cp -r library $(PREFIX)/lib/trylid
18 clean:
19 rm -rf .c-sources .objects .jolt-sources .jolt-sources-self
22 # Tarball creation.
24 TARBALL_FILES := sources makefile ReadMe License tarball-date version
25 TARBALL_FILES += library/trylid.k library/Standard
26 TARBALL_FILES += library/Posix/*.st library/Posix/makefile library/Posix/*.h
27 TARBALL_FILES += docs/source docs/html docs/makefile
28 TARBALL_FILES += start.k start-self.k command-line.k
29 TARBALL_FILES += tests
30 TARBALL_FILES += build-settings .c-sources .jolt-sources
32 TRYLID_DIR := $(notdir $(PWD))
33 TARBALL_FILES := $(addprefix $(TRYLID_DIR)/,$(TARBALL_FILES))
35 tarball:
36 date "+%Y.%m.%d %k:%M %z" > tarball-date
37 cd .. && tar --create --gzip --file=$(TRYLID_DIR)/trylid.tgz \
38 $(TARBALL_FILES)