tinycobol/cobrun/Makefile.mingw.in

74 lines
1.2 KiB
Makefile

#
# Makefile for htcobrun
#
prefix=@prefix@
exec_prefix=${prefix}
INSTALL=@INSTALL@
INSTALL_DATA=@INSTALL_DATA@
INSTBIN=@cobbin_default@
INSTRC=@cobdir_default@
tc_library=..\lib\libhtcobol.a
RM=@RM@
EXEEXT=@exeext@
CCX=@CC@
INCLUDES=@INCLUDES@
LIBS=@LIBS@ @htg_ld_args_htcobol@ @htg_ld_args_db@ @htg_ld_args_curses@
LIBS1=@LIBS@ @htg_ld_args_db@ @htg_ld_args_curses@
LIBS2=@LIBS@ @htg_ld_args_htcobol@
LDFLAGS=
CCXFLAGS=${INCLUDES}
SRC1 = htcobrun.c
OBJ1 = $(SRC1:.c=.o)
PROG1 = htcobrun1$(EXEEXT)
PROG2 = htcobrun$(EXEEXT)
#
# Rules for compiling .c sources
#
.SUFFIX: .c .o
.c.o:
$(CCX) $(CCXFLAGS) -c $<
all: ${PROG2}
#all: ${PROG1} ${PROG2}
# This program does not properly initialize the RTL on Win32
# Does not display the COMMAND-LINE
${PROG1}: ${OBJ1} ${tc_library}
${CCX} ${OBJ1} -Wl,-export-dynamic -o ${PROG1} \
${INCLUDES} -Wl,-whole-archive ${tc_library} \
-Wl,-no-whole-archive $(LIBS1)
${PROG2}: ${OBJ1}
$(CCX) -o $@ ${OBJ1} $(LDFLAGS) $(LIBS2)
clean:
@${RM} ${OBJ1} ${PROG1}.exe ${PROG2}.exe \
*.exe *.def *.o *.lis *.i *.s core
install: install-prog
install-prog: $(PROG2)
strip $(PROG2)
${INSTALL} $(PROG2) $(INSTBIN)\$(PROG2)
uninstall: uninstall-prog
uninstall-prog:
${RM} $(INSTBIN)\$(PROG2)