home *** CD-ROM | disk | FTP | other *** search
Makefile | 1990-12-28 | 901 b | 49 lines |
- #
- # Makefile (well, sort of) for passwd library
- #
- # This makes the library just fine, but only in the small memory model.
- # Some editing will be needed to make the other libraries.
- #
-
- MODEL = s
- CFLAGS = -w -O -m$(MODEL)
- OBJS = endpwent.obj getpwnam.obj pw_file.obj setpwent.obj getpwent.obj\
- getpwuid.obj pw_open.obj
- LIBNAME = $(MODEL)pwd.lib
-
- .c.obj:
- tcc $(CFLAGS) -c $<
- tlib $(LIBNAME) /C /E +-$*
-
- all: $(LIBNAME) # test.exe
-
- clean:
- -rm /f *.obj $(MODEL)pwd.bak
-
- clobber: clean
- -rm /f $(MODEL)pwd.lib test.exe
-
- $(LIBNAME): $(OBJS)
-
- test.exe: test.obj spwd.lib
- tcc $(CFLAGS) -etest test.obj spwd.lib
-
- test.obj: test.c pwd.h
- tcc $(CFLAGS) -c $*
-
- endpwent.obj: endpwent.c pwd.h
-
- getpwnam.obj: getpwnam.c pwd.h
-
- pw_file.obj: pw_file.c pwd.h
-
- setpwent.obj: setpwent.c pwd.h
-
- getpwent.obj: getpwent.c pwd.h
-
- getpwuid.obj: getpwuid.c pwd.h
-
- pw_open.obj: pw_open.c pwd.h
-
-
-