home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume13 / rolodex / part01 / Makefile.tc < prev    next >
Encoding:
Makefile  |  1988-01-30  |  1.3 KB  |  42 lines

  1. # Makefile for Rolodex - PC/MS-DOS version (Turbo-C)
  2.  
  3. # Configure for your type of terminal capability database.  
  4. #  if you have termcap,  set TERMSTUFF= -DTERMCAP,  and LIBS= -ltermcap
  5. #  if you have terminfo, set TERMSTUFF= -DTERMINFO, and LIBS= -lterminfo
  6. #  if you dont have either, leave them both blank (only "clear_screen" is used)
  7. #TERMSTUFF= -DTERMCAP
  8. TERMSTUFF=
  9. #LIBS= -lcurses -ltermcap
  10. #
  11. CC = tcc
  12. MODEL= s
  13. LIBDIR= d:
  14. ROLOLIB = "rololib"
  15. TOOLDIR = toolsdir
  16. CFLAGS = -DMSDOS -DROLOLIB=$(ROLOLIB) $(TERMSTUFF) -I$(TOOLDIR) -O
  17. DBGFLAG = 
  18.  
  19. SOURCES = clear.c io.c menuaux.c operatns.c options.c \
  20.     rlist.c rolo.c search.c update.c
  21.  
  22. OBJECTS = clear.obj io.obj menuaux.obj operatns.obj options.obj \
  23.     rlist.obj rolo.obj search.obj update.obj
  24.  
  25. TOOLOBJ = $(TOOLDIR)/mem.obj $(TOOLDIR)/args.obj $(TOOLDIR)/ctools.obj \
  26.     $(TOOLDIR)/menu.obj
  27.  
  28. .c.obj:
  29.     $(CC) $(CFLAGS) -c $<
  30.  
  31. #
  32. # Please note that the 'tlink' line is very Turbo-C dependent.  Modify as
  33. # needed for your linker.  For Turbo-C, you must make a file named 'respfile',
  34. # consisting of the object filenames for $(OBJECTS) and $(TOOLOBJ), with
  35. # the subordinate directory 'toolsdir' as part of the name.
  36. #
  37. rolo: $(OBJECTS) respfile
  38.     cd $(TOOLDIR)
  39.     make -fmakefile.dos tools
  40.     cd ..
  41.     tlink /c /x $(LIBDIR)c0$(MODEL) @respfile,rolo.exe,,$(LIBDIR)emu $(LIBDIR)math$(MODEL) $(LIBDIR)C$(MODEL)
  42.