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/runtime/c-libs/win32/makefile.win32
ViewVC logotype

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2933 - (download) (annotate)
Thu Jan 31 19:20:20 2008 UTC (13 years, 3 months ago) by larsberg
File size: 1697 byte(s)
Added win32 registry functions and outline of Windows basis library.
#
# the makefile for the Win32 core library
#

SHELL =

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

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

MAKEFILE = 	makefile.win32
MAKE =		nmake /F$(MAKEFILE)
AR =		lib
ARFLAGS =	
RANLIB =	lib

LIBRARY =	libwin32.lib

VERSION =	v-dummy

OBJS =		win32-lib.obj \
		win32-constants.obj \
		win32-errors.obj \
		win32-debug.obj \
		win32-reg.obj \
		name-val.obj 

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

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

DEPENDENTS = $(CLIB_DIR)\ml-c.h cfun-proto-list.h cfun-list.h

win32-lib.obj: win32-lib.c $(DEPENDENTS) \
               $(INC_DIR)\c-library.h $(INC_DIR)\ml-base.h
	$(CC) $(CFLAGS) $(DEFS) $(INCLUDES) /c win32-lib.c

win32-constants.obj: win32-constants.c $(DEPENDENTS) \
	$(INC_DIR)\ml-base.h $(INC_DIR)\ml-values.h $(INC_DIR)\ml-objects.h
	$(CC) $(CFLAGS) $(DEFS) $(INCLUDES) /c win32-constants.c

win32-errors.obj: win32-errors.c $(DEPENDENTS) \
	$(INC_DIR)\ml-base.h $(INC_DIR)\ml-values.h $(INC_DIR)\ml-objects.h
	$(CC) $(CFLAGS) $(DEFS) $(INCLUDES) /c win32-errors.c

win32-debug.obj: win32-debug.c $(DEPENDENTS) \
	$(INC_DIR)\ml-base.h $(INC_DIR)\ml-values.h $(INC_DIR)\ml-objects.h
	$(CC) $(CFLAGS) $(DEFS) $(INCLUDES) /c win32-debug.c

win32-reg.obj: win32-reg.c $(DEPENDENTS) \
	$(INC_DIR)\ml-base.h $(INC_DIR)\ml-values.h $(INC_DIR)\ml-objects.h
	$(CC) $(CFLAGS) $(DEFS) $(INCLUDES) /c win32-reg.c

name-val.obj: name-val.c name-val.h
	$(CC) $(CFLAGS) /c name-val.c
clean:
	del /F /Q v-* *.obj *.pdb $(LIBRARY)



root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0