Skip to content

Commit

Permalink
New V2 API + Win16/Win32 support
Browse files Browse the repository at this point in the history
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9782 dc483132-0cff-0310-8789-dd5450dbe970
  • Loading branch information
probe committed Feb 6, 1997
1 parent 2958bd6 commit e49c99c
Show file tree
Hide file tree
Showing 11 changed files with 627 additions and 413 deletions.
32 changes: 32 additions & 0 deletions src/util/et/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,35 @@
Tue Feb 4 15:59:01 1997 Richard Basch <basch@lehman.com>

* Makefile.in com_err.h error_table.h et_c.awk error_message.c
Corrected various declarations for Windows build

Wed Jan 29 17:32:23 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>

* Makefile.in: Add rules to build test_et (for testing!)

* com_err.h, error_table.h: Fixed up varargs/stdargs declarations
Move definition of struct error_table into com_err.h, and
define first draft of the V2 API. Removed the Windows
specific declarations from error_table.h, since it's now
safe to

* com_err.c, error_message.c, init_et.c, et_name.c: Added new
V2 API's. Cleaned up C code.

* test_et.c: Added new test case for error code 0

* et_c.awk: Added __far for Windows 16 pointer.

* internal.h: File removed, no longer used.

* error_table.y: Add #include the header file "com_err.h"

Thu Nov 21 11:55:16 EST 1996 Richard Basch <basch@lehman.com>

* Makefile.in: win32 build
* com_err.h error_table.h init_et.c internal.h
Win32 support

Mon Nov 18 20:37:19 1996 Ezra Peisach <epeisach@mit.edu>

* configure.in: Set shared library version to 1.0. [krb5-libs/201]
Expand Down
46 changes: 43 additions & 3 deletions src/util/et/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ SED = sed

##DOSBUILDTOP = ..\..
##DOSLIBNAME=comerr.lib
##DOSXTRA=
##DOSOBJFILE=comerr.lst

.c.o:
$(CC) $(CFLAGS) -c $(srcdir)/$*.c
Expand All @@ -14,7 +16,10 @@ INSTALLFILE = cp

LINTFLAGS=-uhvb
LINTFILES= error_message.c et_name.c init_et.c com_err.c
LIBOBJS= error_message.o et_name.o init_et.o com_err.o
LIBOBJS=com_err.$(OBJEXT) \
error_message.$(OBJEXT) \
et_name.$(OBJEXT) \
init_et.$(OBJEXT)
# for et_lex.lex.c include in error_table.y
LOCALINCLUDE=-I. -I$(srcdir)

Expand All @@ -29,24 +34,59 @@ FILES= Makefile et_name.c error_message.c compile_et.c \
# init_et.c com_err.c
SRCS= error_message.c et_name.c init_et.c com_err.c

#
# Warning flags
#
# Uncomment WFLAGS if you want really anal GCC warning messages
#
#
WFLAGS= -ansi -D_POSIX_SOURCE -pedantic \
-Wall -Wwrite-strings -Wpointer-arith \
-Wcast-qual -Wcast-align -Wtraditional \
-Wstrict-prototypes -Wmissing-prototypes \
-Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow

DEPLIBS=
SHLIB_LIBS=
SHLIB_LDFLAGS= $(LDFLAGS) @SHLIB_RPATH_DIRS@
SHLIB_LIBDIRS= @SHLIB_LIBDIRS@
STEXT=@STEXT@

all-windows: com_err.obj error_message.obj et_name.obj
all-windows:: $(OBJFILE)
copy com_err.h $(BUILDTOP)\include

##DOS$(OBJFILE): $(LIBOBJS)
##DOS $(RM) $(OBJFILE)
##WIN16## $(CP) nul: $(OBJFILE)
##WIN32## $(LIBECHO) *.obj > $(OBJFILE)

#
# what to build...
#

#
# rules
#
error_table.o: et_lex.lex.c
error_table.c: et_lex.lex.c

error_table.c: $(srcdir)/error_table.y

error_table.o: error_table.c et_lex.lex.c
$(CC) $(CFLAGS) -c error_table.c

et_lex.lex.o: et_lex.lex.c
$(CC) $(CFLAGS) -c et_lex.lex.c

test1.o: test1.c
$(CC) $(CFLAGS) -c test1.c

test2.o: test2.c
$(CC) $(CFLAGS) -c test2.c

test_et.o: test1.h test2.h

test_et: test_et.o test1.o test2.o $(LIBOBJS)
$(CC) -o test_et test_et.o test1.o test2.o $(LIBOBJS)

# solaris make loses on com_err.c but not on init_et.c, but this helps
com_err.o: com_err.c
Expand Down
Loading

0 comments on commit e49c99c

Please sign in to comment.