OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [or1ksim/] [or1ksim-0.4.0rc1/] [argtable2/] [Makefile.nmake] - Diff between revs 19 and 105

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 19 Rev 105
# This Makefile is for building argtable2 with Microsoft Visual C.
# This Makefile is for building argtable2 with Microsoft Visual C.
# To build a relase version execute
# To build a relase version execute
#    NMAKE /f Makefile.nmake
#    NMAKE /f Makefile.nmake
# or for a debug version execute
# or for a debug version execute
#    NMAKE /f Makefile.nmake DEBUG=1
#    NMAKE /f Makefile.nmake DEBUG=1
# On Unix and Mac OS X systems the configure script generates a config.h
# On Unix and Mac OS X systems the configure script generates a config.h
# file that defines various macros that control which header files are
# file that defines various macros that control which header files are
# included by the source code files on a given platform.
# included by the source code files on a given platform.
# As the configure script does not work on Windows platforms the config.h
# As the configure script does not work on Windows platforms the config.h
# file is missing and so you must define the appropriate macros manually.
# file is missing and so you must define the appropriate macros manually.
# The macros required for Windows are: STDC_HEADERS, HAVE_STDLIB_H, and
# The macros required for Windows are: STDC_HEADERS, HAVE_STDLIB_H, and
# HAVE_STRING_H.
# HAVE_STRING_H.
# Rather than hand craft a config.h file we just define them here in CFLAGS
# Rather than hand craft a config.h file we just define them here in CFLAGS
# for convenience.
# for convenience.
CFLAGS = /W4 /D "WIN32" /D "_MBCS" /D "STDC_HEADERS" /D "HAVE_STDLIB_H" /D "HAVE_STRING_H" /nologo
CFLAGS = /W4 /D "WIN32" /D "_MBCS" /D "STDC_HEADERS" /D "HAVE_STDLIB_H" /D "HAVE_STRING_H" /nologo
!IF "$(DEBUG)" == "1"
!IF "$(DEBUG)" == "1"
CFLAGS = $(CFLAGS) /D "_DEBUG" /Od /MLd /RTC1 /ZI
CFLAGS = $(CFLAGS) /D "_DEBUG" /Od /MLd /RTC1 /ZI
!ELSE
!ELSE
CFLAGS = $(CFLAGS) /D "NDEBUG" /O2 /ML /GS /Zi
CFLAGS = $(CFLAGS) /D "NDEBUG" /O2 /ML /GS /Zi
!ENDIF
!ENDIF
all: argtable2.lib argtable2.dll
all: argtable2.lib argtable2.dll
# Note: arg_date.obj and arg_rex.obj do not compile under Microsoft and have been omitted from the library
# Note: arg_date.obj and arg_rex.obj do not compile under Microsoft and have been omitted from the library
OBJS = argtable2.obj arg_dbl.obj arg_end.obj arg_file.obj arg_int.obj arg_lit.obj arg_rem.obj arg_str.obj getopt.obj getopt1.obj
OBJS = argtable2.obj arg_dbl.obj arg_end.obj arg_file.obj arg_int.obj arg_lit.obj arg_rem.obj arg_str.obj getopt.obj getopt1.obj
$(OBJS): argtable2.h getopt.h
$(OBJS): argtable2.h getopt.h
argtable2.lib: $(OBJS)
argtable2.lib: $(OBJS)
        LIB /OUT:$@ $**
        LIB /OUT:$@ $**
argtable2.dll: $(OBJS)
argtable2.dll: $(OBJS)
        link /DLL /OUT:$@ $** /IMPLIB:impargtable2.lib /def:argtable2.def
        link /DLL /OUT:$@ $** /IMPLIB:impargtable2.lib /def:argtable2.def
clean:
clean:
        del *.exe *.lib *.obj *.idb *.pdb *.dll *.exp
        del *.exe *.lib *.obj *.idb *.pdb *.dll *.exp
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.