Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /sml/trunk/src/runtime/c-libs/smlnj-ccalls/makefile.win32
ViewVC logotype

View of /sml/trunk/src/runtime/c-libs/smlnj-ccalls/makefile.win32

Parent Directory Parent Directory | Revision Log Revision Log

Revision 2 - (download) (annotate)
Sat Oct 4 23:33:09 1997 UTC (23 years, 1 month ago) by monnier
File size: 1487 byte(s)
Initial revision
# makefile for the C library that provides ML-callable C functions
# win32 specific


INC_DIR =	..\..\include
CLIB_DIR =	..\

INCLUDES =	/I$(INC_DIR) /I$(CLIB_DIR) /I..\..\objs

MAKEFILE = 	makefile.win32
MAKE =		nmake /F$(MAKEFILE)
AS =		ml /Cx /Zd /Zi /Fr
AR =		lib
RANLIB =	lib

LIBRARY =	libsmlnj-ccalls.lib

VERSION =	v-dummy

OBJS =		c-calls-lib.obj \
		c-calls.obj \
		c-calls-fns.obj \
		c-entry.obj \

C_CFUNS = cutil-cfuns.h

	del /F /Q $(LIBRARY)
	$(AR) $(ARFLAGS) /out:$(LIBRARY) $(OBJS)
	$(RANLIB) /out:$(LIBRARY)

	($(MAKE) MAKE="$(MAKE)" clean)
	echo "$(VERSION)" > $(VERSION)

DEPENDENTS = $(CLIB_DIR)\ml-c.h	$(CLIB_DIR)\ml-c.h \
	     $(INC_DIR)\ml-osdep.h $(INC_DIR)\ml-base.h \
	     $(INC_DIR)\ml-values.h $(INC_DIR)\cache-flush.h \
	     c-calls.h \
  	     cfun-proto-list.h cfun-list.h

c-calls-lib.obj: $(INC_DIR)\ml-osdep.h $(DEPENDENTS) $(C_CFUNS)
	$(CC) $(CFLAGS) $(DEFS) $(INCLUDES) $(LOCAL_INCLUDES) /c c-calls-lib.c
c-entry.obj: c-entry.asm c-calls.h
	$(CPP) /D_ASM_ $(DEFS) $(INCLUDES) c-entry.asm > c-entry.s
	$(AS) /c c-entry.s

c-calls.obj: $(DEPENDENTS)
	$(CC) $(CFLAGS) $(DEFS) $(INCLUDES) $(LOCAL_INCLUDES) /c c-calls.c

c-calls-fns.obj: $(DEPENDENTS)
	$(CC) $(CFLAGS) $(DEFS) $(INCLUDES) $(LOCAL_INCLUDES) /c c-calls-fns.c

cutil.obj: $(DEPENDENTS)

	del /F /Q v-* *.obj *.pdb *.s  $(LIBRARY)

ViewVC Help
Powered by ViewVC 1.0.0