diff options
Diffstat (limited to 'igen/Makefile')
-rw-r--r-- | igen/Makefile | 27 |
1 files changed, 27 insertions, 0 deletions
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) |