home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume25 / trash / part02 / makefile < prev    next >
Encoding:
Makefile  |  1992-03-22  |  6.7 KB  |  582 lines

  1. #
  2. # trash
  3. #
  4. TARGET    =trash
  5. UTARGET    =utrash
  6. SHELL    =/bin/sh
  7. RM    =/bin/rm -rf
  8. CHMOD    =/bin/chmod
  9.  
  10. CC    =/bin/cc
  11. LD    =/bin/cc
  12. DFLAGS    =
  13. UDFLAGS    =$(DFLAGS)
  14. PFLAG    =
  15. CFLAGS    =-g3 -c
  16. UCFLAGS    =-j
  17. LDFLAGS    =$(PFLAG) -g3
  18. # Tried -Olimit at 700 but ran (slightly) slower...
  19. ULDFLAGS    =$(PFLAG) -O3 -Olimit 600
  20. LIBS    =-lmld
  21. ULIBS    =$(LIBS)
  22. #ULIBS    =-klmld
  23.  
  24. OBJS    =\
  25.     bzero.o\
  26.     bsd43.o\
  27.     couldnot.o\
  28.     diblock.o\
  29.     dmult.o\
  30.     dmultu.o\
  31.     execvpath.o\
  32.     fd.o\
  33.     format.o\
  34.     generic.o\
  35.     getopt.o\
  36.     getprbyno.o\
  37.     go.o\
  38.     histogram.o\
  39.     history.o\
  40.     i_a.o\
  41.     i_b.o\
  42.     i_c.o\
  43.     i_d.o\
  44.     i_j.o\
  45.     i_l.o\
  46.     i_m.o\
  47.     i_n.o\
  48.     i_o.o\
  49.     i_s.o\
  50.     i_syscall.o\
  51.     i_u.o\
  52.     i_x.o\
  53.     load.o\
  54.     main.o\
  55.     myldopen.o\
  56.     myname.o\
  57.     optab.o\
  58.     posix.o\
  59.     process.o\
  60.     resource.o\
  61.     say.o\
  62.     sgttyb.o\
  63.     syms.o\
  64.     sysmess.o\
  65.     sysv.o\
  66.     usage.o\
  67.     vcouldnot.o\
  68.     warning.o\
  69.     wcache.o
  70.  
  71. UOBJS    =\
  72.     bzero.u\
  73.     bsd43.u\
  74.     couldnot.u\
  75.     diblock.u\
  76.     execvpath.u\
  77.     fd.u\
  78.     format.u\
  79.     generic.u\
  80.     getopt.u\
  81.     getprbyno.u\
  82.     go.u\
  83.     histogram.u\
  84.     history.u\
  85.     i_a.u\
  86.     i_b.u\
  87.     i_c.u\
  88.     i_d.u\
  89.     i_j.u\
  90.     i_l.u\
  91.     i_m.u\
  92.     i_n.u\
  93.     i_o.u\
  94.     i_s.u\
  95.     i_syscall.u\
  96.     i_u.u\
  97.     i_x.u\
  98.     load.u\
  99.     main.u\
  100.     myldopen.u\
  101.     myname.u\
  102.     optab.u\
  103.     posix.u\
  104.     process.u\
  105.     resource.u\
  106.     say.u\
  107.     sgttyb.u\
  108.     syms.u\
  109.     sysmess.u\
  110.     sysv.u\
  111.     usage.u\
  112.     vcouldnot.u\
  113.     warning.u\
  114.     wcache.u
  115.  
  116. UOBJSA    =\
  117.     dmult.o\
  118.     dmultu.o
  119.  
  120. .c.u    :
  121.     $(CC) $(UDFLAGS) $(UCFLAGS) $*.c
  122.  
  123. .c.o    :
  124.     $(CC) $(DFLAGS) $(CFLAGS) $*.c
  125.  
  126. .u.o    :
  127.     $(CC) $(CFLAGS) $*.u
  128.  
  129. $(TARGET):    $(OBJS) 
  130.     $(LD) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
  131.  
  132. $(UTARGET):    $(UOBJS) $(UOBJSA)
  133.     -$(CC) $(ULDFLAGS) -o $(UTARGET) $(UOBJS) $(UOBJSA) $(ULIBS)
  134.     # ld complains and leaves the target unexecutable.
  135.     # Not sure what the complaints mean...
  136.     $(CHMOD) 755 $(UTARGET)
  137.  
  138. bzero.u : \
  139.     bzero.c
  140. bsd43.u : \
  141.     bsd43.c \
  142.     register.h \
  143.     instrn.h \
  144.     symtab.h \
  145.     diblock.h \
  146.     process.h \
  147.     sysentry.h \
  148.     res.h \
  149.     nels.h \
  150.     flag.h \
  151.     generic.h
  152. couldnot.u : \
  153.     couldnot.c
  154. diblock.u : \
  155.     diblock.c \
  156.     entry.h \
  157.     diblock.h \
  158.     talloc.h \
  159.     nels.h
  160. execvpath.u : \
  161.     execvpath.c
  162. fd.u : \
  163.     fd.c \
  164.     nels.h
  165. format.u : \
  166.     format.c
  167. generic.u : \
  168.     generic.c \
  169.     register.h \
  170.     instrn.h \
  171.     symtab.h \
  172.     diblock.h \
  173.     process.h \
  174.     res.h
  175. getopt.u : \
  176.     getopt.c
  177. getprbyno.u : \
  178.     getprbyno.c
  179. go.u : \
  180.     go.c \
  181.     register.h \
  182.     instrn.h \
  183.     symtab.h \
  184.     diblock.h \
  185.     process.h \
  186.     nels.h
  187. histogram.u : \
  188.     histogram.c
  189. history.u : \
  190.     history.c \
  191.     register.h \
  192.     instrn.h \
  193.     symtab.h \
  194.     diblock.h \
  195.     process.h
  196. i_a.u : \
  197.     i_a.c \
  198.     register.h \
  199.     instrn.h \
  200.     symtab.h \
  201.     process.h \
  202.     diblock.h
  203. i_b.u : \
  204.     i_b.c \
  205.     register.h \
  206.     instrn.h \
  207.     symtab.h \
  208.     process.h \
  209.     diblock.h
  210. i_c.u : \
  211.     i_c.c \
  212.     register.h \
  213.     instrn.h \
  214.     symtab.h \
  215.     process.h \
  216.     diblock.h
  217. i_d.u : \
  218.     i_d.c \
  219.     register.h \
  220.     instrn.h \
  221.     symtab.h \
  222.     process.h \
  223.     diblock.h
  224. i_j.u : \
  225.     i_j.c \
  226.     register.h \
  227.     instrn.h \
  228.     symtab.h \
  229.     process.h \
  230.     diblock.h
  231. i_l.u : \
  232.     i_l.c \
  233.     register.h \
  234.     instrn.h \
  235.     symtab.h \
  236.     process.h \
  237.     wcache.h \
  238.     diblock.h
  239. i_m.u : \
  240.     i_m.c \
  241.     register.h \
  242.     instrn.h \
  243.     symtab.h \
  244.     process.h \
  245.     diblock.h
  246. i_n.u : \
  247.     i_n.c \
  248.     register.h \
  249.     instrn.h \
  250.     symtab.h \
  251.     process.h \
  252.     diblock.h
  253. i_o.u : \
  254.     i_o.c \
  255.     register.h \
  256.     instrn.h \
  257.     symtab.h \
  258.     process.h \
  259.     diblock.h
  260. i_s.u : \
  261.     i_s.c \
  262.     register.h \
  263.     instrn.h \
  264.     symtab.h \
  265.     process.h \
  266.     wcache.h \
  267.     diblock.h
  268. i_syscall.u : \
  269.     i_syscall.c \
  270.     register.h \
  271.     instrn.h \
  272.     symtab.h \
  273.     diblock.h \
  274.     process.h \
  275.     sysentry.h \
  276.     res.h \
  277.     nels.h
  278. i_u.u : \
  279.     i_u.c
  280. i_x.u : \
  281.     i_x.c \
  282.     register.h \
  283.     instrn.h \
  284.     symtab.h \
  285.     diblock.h \
  286.     process.h
  287. load.u : \
  288.     load.c \
  289.     register.h \
  290.     instrn.h \
  291.     symtab.h \
  292.     diblock.h \
  293.     process.h
  294. main.u : \
  295.     main.c
  296. myldopen.u : \
  297.     myldopen.c
  298. myname.u : \
  299.     myname.c
  300. optab.u : \
  301.     optab.c \
  302.     instrn.h
  303. posix.u : \
  304.     posix.c \
  305.     sysentry.h \
  306.     nels.h
  307. process.u : \
  308.     process.c \
  309.     register.h \
  310.     instrn.h \
  311.     symtab.h \
  312.     diblock.h \
  313.     process.h \
  314.     wcache.h \
  315.     nels.h
  316. resource.u : \
  317.     resource.c \
  318.     res.h
  319. say.u : \
  320.     say.c \
  321.     register.h
  322. sgttyb.u : \
  323.     sgttyb.c
  324. syms.u : \
  325.     syms.c \
  326.     symtab.h
  327. sysmess.u : \
  328.     sysmess.c
  329. sysv.u : \
  330.     sysv.c \
  331.     register.h \
  332.     instrn.h \
  333.     symtab.h \
  334.     process.h \
  335.     sysentry.h \
  336.     nels.h \
  337.     res.h \
  338.     flag.h \
  339.     generic.h \
  340.     diblock.h
  341. usage.u : \
  342.     usage.c
  343. vcouldnot.u : \
  344.     vcouldnot.c \
  345.     register.h \
  346.     instrn.h \
  347.     symtab.h \
  348.     process.h \
  349.     diblock.h
  350. warning.u : \
  351.     warning.c
  352. wcache.u : \
  353.     wcache.c \
  354.     nels.h
  355.  
  356. bzero.o : \
  357.     bzero.c
  358. bsd43.o : \
  359.     bsd43.c \
  360.     register.h \
  361.     instrn.h \
  362.     symtab.h \
  363.     diblock.h \
  364.     process.h \
  365.     sysentry.h \
  366.     res.h \
  367.     nels.h \
  368.     flag.h \
  369.     generic.h
  370. couldnot.o : \
  371.     couldnot.c
  372. diblock.o : \
  373.     diblock.c \
  374.     entry.h \
  375.     diblock.h \
  376.     talloc.h \
  377.     nels.h
  378. execvpath.o : \
  379.     execvpath.c
  380. fd.o : \
  381.     fd.c \
  382.     nels.h
  383. format.o : \
  384.     format.c
  385. generic.o : \
  386.     generic.c \
  387.     register.h \
  388.     instrn.h \
  389.     symtab.h \
  390.     diblock.h \
  391.     process.h \
  392.     res.h
  393. getopt.o : \
  394.     getopt.c
  395. getprbyno.o : \
  396.     getprbyno.c
  397. go.o : \
  398.     go.c \
  399.     register.h \
  400.     instrn.h \
  401.     symtab.h \
  402.     process.h \
  403.     diblock.h \
  404.     nels.h
  405. histogram.o : \
  406.     histogram.c
  407. history.o : \
  408.     history.c \
  409.     register.h \
  410.     instrn.h \
  411.     symtab.h \
  412.     diblock.h \
  413.     process.h
  414. i_a.o : \
  415.     i_a.c \
  416.     register.h \
  417.     instrn.h \
  418.     symtab.h \
  419.     process.h \
  420.     diblock.h
  421. i_b.o : \
  422.     i_b.c \
  423.     register.h \
  424.     instrn.h \
  425.     symtab.h \
  426.     process.h \
  427.     diblock.h
  428. i_c.o : \
  429.     i_c.c \
  430.     register.h \
  431.     instrn.h \
  432.     symtab.h \
  433.     diblock.h \
  434.     process.h
  435. i_d.o : \
  436.     i_d.c \
  437.     register.h \
  438.     instrn.h \
  439.     symtab.h \
  440.     diblock.h \
  441.     process.h
  442. i_j.o : \
  443.     i_j.c \
  444.     register.h \
  445.     instrn.h \
  446.     symtab.h \
  447.     diblock.h \
  448.     process.h
  449. i_l.o : \
  450.     i_l.c \
  451.     register.h \
  452.     instrn.h \
  453.     symtab.h \
  454.     diblock.h \
  455.     wcache.h \
  456.     process.h
  457. i_m.o : \
  458.     i_m.c \
  459.     register.h \
  460.     instrn.h \
  461.     symtab.h \
  462.     diblock.h \
  463.     process.h
  464. i_n.o : \
  465.     i_n.c \
  466.     register.h \
  467.     instrn.h \
  468.     symtab.h \
  469.     diblock.h \
  470.     process.h
  471. i_o.o : \
  472.     i_o.c \
  473.     register.h \
  474.     instrn.h \
  475.     symtab.h \
  476.     diblock.h \
  477.     process.h
  478. i_s.o : \
  479.     i_s.c \
  480.     register.h \
  481.     instrn.h \
  482.     symtab.h \
  483.     diblock.h \
  484.     wcache.h \
  485.     process.h
  486. i_syscall.o : \
  487.     i_syscall.c \
  488.     register.h \
  489.     instrn.h \
  490.     symtab.h \
  491.     diblock.h \
  492.     process.h \
  493.     sysentry.h \
  494.     res.h \
  495.     nels.h
  496. i_u.o : \
  497.     i_u.c
  498. i_x.o : \
  499.     i_x.c \
  500.     register.h \
  501.     instrn.h \
  502.     symtab.h \
  503.     diblock.h \
  504.     process.h
  505. load.o : \
  506.     load.c \
  507.     register.h \
  508.     instrn.h \
  509.     symtab.h \
  510.     diblock.h \
  511.     process.h
  512. main.o : \
  513.     main.c
  514. myldopen.o : \
  515.     myldopen.c
  516. myname.o : \
  517.     myname.c
  518. optab.o : \
  519.     optab.c \
  520.     instrn.h
  521. posix.o : \
  522.     posix.c \
  523.     sysentry.h \
  524.     nels.h
  525. process.o : \
  526.     process.c \
  527.     register.h \
  528.     instrn.h \
  529.     symtab.h \
  530.     diblock.h \
  531.     process.h \
  532.     wcache.h \
  533.     nels.h
  534. resource.o : \
  535.     resource.c \
  536.     res.h
  537. say.o : \
  538.     say.c \
  539.     register.h
  540. sgttyb.o : \
  541.     sgttyb.c
  542. syms.o : \
  543.     syms.c \
  544.     symtab.h
  545. sysmess.o : \
  546.     sysmess.c
  547. sysv.o : \
  548.     sysv.c \
  549.     register.h \
  550.     instrn.h \
  551.     symtab.h \
  552.     diblock.h \
  553.     process.h \
  554.     sysentry.h \
  555.     nels.h \
  556.     res.h \
  557.     flag.h \
  558.     generic.h
  559. usage.o : \
  560.     usage.c
  561. vcouldnot.o : \
  562.     vcouldnot.c \
  563.     register.h \
  564.     instrn.h \
  565.     symtab.h \
  566.     diblock.h \
  567.     process.h
  568. warning.o : \
  569.     warning.c
  570. wcache.o : \
  571.     wcache.c \
  572.     nels.h
  573.  
  574. clobber:    clean
  575.     $(RM) $(TARGET) $(UTARGET)
  576.  
  577. clean:
  578.     $(RM) $(OBJS) $(UOBJS) [Mm]ade mon.out core tags
  579.  
  580. tags:
  581.     ctags *.[ch]
  582.