From 2649bf3157c73322a3b124ea9d49e14d7daa3656 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Wed, 26 May 2021 10:19:22 -0400 Subject: Initial commit. Added the Makefile. --- Makefile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..92f2aee --- /dev/null +++ b/Makefile @@ -0,0 +1,28 @@ +PREFIX := /usr/local +BIN_DIR := $(PREFIX)/bin + +ifdef PCC +PCC_CFLAGS=-D__float128="long double" +else +PCC_CFLAGS= +endif + + +OBJS = libtcc-test.o + +CFLAGS = $(PCC_CFLAGS) $(CFLAGS_EXTRA) + +OBJ_NAME = libtcc-test + +all : clean $(OBJ_NAME) + +$(OBJ_NAME) : $(OBJS) + $(CC) $(OBJS) $(CFLAGS) -ltcc -o $(OBJ_NAME) +%.o : %.c + $(CC) -c $< -o $@ $(CFLAGS) +clean : + rm -f $(OBJ_NAME) *.o +install : + install -D -m755 $(OBJ_NAME) $(BIN_DIR)/$(OBJ_NAME) +uninstall : + rm -f $(BIN_DIR)/$(OBJ_NAME) -- cgit v1.2.3-13-gbd6f