home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / pmsock01.zip / makefile < prev    next >
Makefile  |  1994-09-23  |  1KB  |  39 lines

  1. #
  2. # Makefile for PMSOCK 0.1
  3. #
  4.  
  5. # directory where IBM TCP/IP is installed
  6. #
  7. TCPIP = D:\tcpip
  8.  
  9. # Make sure TCPLIB is in your LIBRARY_PATH
  10. # tcp32dll.a and so32dll.a are expected to be found in
  11. # this directory.  If not, they will be created and copied there.
  12. # This can be emx/lib if you prefer.  Note you can't use drive letters..
  13. TCPLIB = \tcpip\lib
  14. TCPLIBS = $(TCPLIB)/tcp32dll.a $(TCPLIB)/so32dll.a
  15. IMP = implib
  16.  
  17. CC = gcc
  18. CFLAGS = -Zc++-comments -D_System=
  19. LIBS = -ltcp32dll -lso32dll
  20.  
  21. all: $(TCPLIBS) daytime.exe
  22.  
  23. $(TCPLIB)/tcp32dll.a: $(TCPIP)\dll\tcp32dll.dll
  24.     socklib $(TCPIP) tcp32dll
  25.     @if not exist $(TCPLIB)\tcp32dll.a copy tcp32dll.a $(TCPLIB)    
  26.  
  27. $(TCPLIB)/so32dll.a: $(TCPIP)/dll/so32dll.dll
  28.     socklib $(TCPIP) so32dll
  29.     @if not exist $(TCPLIB)\so32dll.a copy so32dll.a $(TCPLIB)    
  30.  
  31. pmsock.o: pmsock.c pmsock.h
  32.     $(CC) $(CFLAGS) -c pmsock.c 
  33.  
  34. daytime.o: daytime.c pmsock.h
  35.     $(CC) $(CFLAGS) -c daytime.c
  36.  
  37. daytime.exe: daytime.o pmsock.o
  38.     $(CC) $(CFLAGS) daytime.o pmsock.o $(LIBS) -o daytime.exe
  39.