From f0c9da455c9c3e1cfe9dd188f517e73e48cfabc8 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Sat, 12 Oct 2019 20:26:04 -0400 Subject: Added Makefile, options, and a license. clld is now officially, Free Software!!! --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3-13-gbd6f