diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2021-05-26 10:19:22 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2021-05-26 10:19:22 -0400 |
commit | 2649bf3157c73322a3b124ea9d49e14d7daa3656 (patch) | |
tree | 456aa6f055363b564915eda71ef9782e90ba46e9 /Makefile |
Initial commit.
Added the Makefile.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
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) |