summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2019-10-12 20:26:04 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2019-10-12 20:26:04 -0400
commitf0c9da455c9c3e1cfe9dd188f517e73e48cfabc8 (patch)
tree700b06327fe1d098af8aeb77f34be65558808ce7 /Makefile
parent35025ae9c82684b88c8645aeb4cdbeb87d8d0891 (diff)
Added Makefile, options, and a license.
clld is now officially, Free Software!!!
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..25ef589
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+PREFIX := /usr/local
+BIN_DIR := $(PREFIX)/bin
+
+ifdef PCC
+PCC_CFLAGS=-D__float128="long double"
+else
+PCC_CFLAGS=
+endif
+
+CFLAGS = $(PCC_CFLAGS)
+OBJS = clld.c
+OBJ_NAME = clld
+all : $(OBJS)
+ $(CC) $(OBJS) $(CFLAGS) -o $(OBJ_NAME)
+test-mvmt :
+ $(CC) test-mvmt.c $(CFLAGS) -o test-mvmt
+clean :
+ rm -f $(OBJ_NAME) test-mvmt
+install :
+ install -D -m755 clld $(BIN_DIR)/clld
+uninstall :
+ rm -f $(BIN_DIR)/clld