URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
19 |
jeremybenn |
# This Makefile is for building argtable2 with Microsoft Visual C.
|
2 |
|
|
# To build a relase version execute
|
3 |
|
|
# NMAKE /f Makefile.nmake
|
4 |
|
|
# or for a debug version execute
|
5 |
|
|
# NMAKE /f Makefile.nmake DEBUG=1
|
6 |
|
|
|
7 |
|
|
# On Unix and Mac OS X systems the configure script generates a config.h
|
8 |
|
|
# file that defines various macros that control which header files are
|
9 |
|
|
# included by the source code files on a given platform.
|
10 |
|
|
# As the configure script does not work on Windows platforms the config.h
|
11 |
|
|
# file is missing and so you must define the appropriate macros manually.
|
12 |
|
|
# The macros required for Windows are: STDC_HEADERS, HAVE_STDLIB_H, and
|
13 |
|
|
# HAVE_STRING_H.
|
14 |
|
|
# Rather than hand craft a config.h file we just define them here in CFLAGS
|
15 |
|
|
# for convenience.
|
16 |
|
|
CFLAGS = /W4 /D "WIN32" /D "_MBCS" /D "STDC_HEADERS" /D "HAVE_STDLIB_H" /D "HAVE_STRING_H" /nologo
|
17 |
|
|
|
18 |
|
|
!IF "$(DEBUG)" == "1"
|
19 |
|
|
CFLAGS = $(CFLAGS) /D "_DEBUG" /Od /MLd /RTC1 /ZI
|
20 |
|
|
!ELSE
|
21 |
|
|
CFLAGS = $(CFLAGS) /D "NDEBUG" /O2 /ML /GS /Zi
|
22 |
|
|
!ENDIF
|
23 |
|
|
|
24 |
|
|
all: argtable2.lib argtable2.dll
|
25 |
|
|
|
26 |
|
|
# Note: arg_date.obj and arg_rex.obj do not compile under Microsoft and have been omitted from the library
|
27 |
|
|
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
|
28 |
|
|
|
29 |
|
|
$(OBJS): argtable2.h getopt.h
|
30 |
|
|
|
31 |
|
|
argtable2.lib: $(OBJS)
|
32 |
|
|
LIB /OUT:$@ $**
|
33 |
|
|
|
34 |
|
|
argtable2.dll: $(OBJS)
|
35 |
|
|
link /DLL /OUT:$@ $** /IMPLIB:impargtable2.lib /def:argtable2.def
|
36 |
|
|
|
37 |
|
|
clean:
|
38 |
|
|
del *.exe *.lib *.obj *.idb *.pdb *.dll *.exp
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.