home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / uupc_fix.zip / Makefile < prev    next >
Makefile  |  1996-07-14  |  823b  |  39 lines

  1. #
  2. # emx Makefile for UUPC.
  3. # Created by John Carmack.
  4. #
  5. # Please note two things:
  6. # 1.  I'm no makefile expert, and this is really kludged together.
  7. # 2.  This is only for compiling the library, inews and rmail.  These
  8. # were the items of interest to me.  However, I think it can be extended
  9. # from this starting point, if someone so desires.
  10. #
  11.  
  12. CFLAGS = -g -D__OS2__ -D__GCC__
  13. CC = gcc
  14.  
  15. .c.o:
  16.     $(CC) $(CFLAGS) -c $<
  17.  
  18. O = .o
  19. EXE = .exe
  20.  
  21. INEWS = inews
  22. RMAIL = rmail
  23.  
  24. .INCLUDE : Makefile.lib
  25. .INCLUDE : Makefile.news
  26. .INCLUDE : Makefile.mail
  27.  
  28. inews.exe: $(LIBS) $(NEWSOBJ)
  29.     $(CC) $(CFLAGS) -o $(INEWS)$(EXE) $(INEWS)$(O) $(LIBS)
  30.  
  31. rmail.exe: $(LIBS) $(RMAILOBJ)
  32.     $(CC) $(CFLAGS) -o $(RMAIL)$(EXE) $(RMAILOBJ) $(LIBS)
  33.  
  34. all:    $(INEWS)$(EXE) $(RMAIL)$(EXE)
  35.  
  36. clean:
  37.     -del *$(O)
  38.     -del *$(EXE)
  39.