diff options
Diffstat (limited to 'libslang/slsh/Makefile.g32')
-rw-r--r-- | libslang/slsh/Makefile.g32 | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/libslang/slsh/Makefile.g32 b/libslang/slsh/Makefile.g32 new file mode 100644 index 0000000..55010f6 --- /dev/null +++ b/libslang/slsh/Makefile.g32 @@ -0,0 +1,36 @@ +# This is a makefile for mingw32. Compiling slsh using other compilers should +# be equally simple. +# +CC = gcc +CFLAGS = -W -Wall -O2 +COPY = cp +SLCONFIG_H = ../src/slconfig.h +#--------------------------------------------------------------------------- +# Installation location of the slang library +#--------------------------------------------------------------------------- +SLANG_INC = -I../src +SLANG_LIB = -L../src/gw32objs -lslang +#---------------------------------------------------------------------------- +# Installation location of lib/slsh.rc and lib/*.sl +#---------------------------------------------------------------------------- +COPY = cp +MKDIR = mkdir +SLSH_CONF_DIR = C:/slsh +SLSH_LIB_DIR = C:/slsh +#---------------------------------------------------------------------------- +# End of user configuration +#---------------------------------------------------------------------------- +LIBS = $(RPATH) $(SLANG_LIB) $(DL_LIB) -lm +#DEFS = -DSLSH_CONF_DIR='"$(SLSH_CONF_DIR)"' -DSLSH_PATH='"$(SLSH_LIB_DIR)"' + +slsh: slsh.c config.h + $(CC) $(CFLAGS) slsh.c -o slsh $(SLANG_INC) $(LIBS) +config.h: ../src/config.h + $(COPY) $(SLCONFIG_H) config.h +install: slsh + -$(MKDIR) $(SLSH_CONF_DIR) + -$(MKDIR) $(SLSH_LIB_DIR) + $(COPY) lib/*.sl $(SLSH_LIB_DIR) + $(COPY) lib/slsh.rc $(SLSH_CONF_DIR) + + |