From bb88d7c8640a89ed943773ff5b7c34a67377fc9d Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Thu, 17 Feb 2022 21:16:58 -0400 Subject: igen: Add Makefile. --- igen/Makefile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 igen/Makefile (limited to 'igen/Makefile') diff --git a/igen/Makefile b/igen/Makefile new file mode 100644 index 0000000..73cef90 --- /dev/null +++ b/igen/Makefile @@ -0,0 +1,27 @@ +PREFIX := /usr/local +BIN_DIR := $(PREFIX)/bin + +ifdef PCC +PCC_CFLAGS=-D__float128="long double" +else +PCC_CFLAGS= +endif + +OBJS = igen.o lexer.o misc.o preprocessor.o + +CFLAGS = $(PCC_CFLAGS) $(CFLAGS_EXTRA) + +OBJ_NAME = igen + +all : clean $(OBJ_NAME) + +$(OBJ_NAME): $(OBJS) + $(CC) $< $(CFLAGS) -o $@ +%.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