home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 March / VPR9703A.ISO / VPR_DATA / DOGA / SOURCES / POLYEDIT.LZH / ML / MAKEFILE < prev    next >
Text File  |  1996-03-07  |  1KB  |  40 lines

  1. CC        = gcc
  2. LK        = gcc
  3. #CFLAGS    = -Wall -DX68K -I../lib -O -fstrength-reduce -fomit-frame-pointer -m68881 -m68020
  4. CFLAGS    = -Wall -DX68K -I../lib -O -fstrength-reduce -fomit-frame-pointer
  5. LIBS    = ../lib/lib.a
  6. CLIBS    = -lmalloc -ldos -lflfnc
  7.  
  8. TARGET    = ml.a
  9. OBJS1    = ml.o extend.o
  10. OBJS2    = exec1.o exec2.o exec3.o
  11. OBJS3    = parse1.o parse2.o parse3.o std.o check.o scanner.o code.o
  12. OBJS4    = init.o stack.o class.o object.o func.o ident.o str.o alloc.o err.o
  13. OBJS    = $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4)
  14.  
  15. all : $(TARGET)
  16.  
  17. .SUFFIXES: .x .o .s .c
  18.  
  19. %.o : %.c
  20.     $(CC) $(CFLAGS) -c $< -o $@
  21.  
  22. %.s : %.c
  23.     $(CC) $(CFLAGS) -S $< -o $@
  24.  
  25.  
  26. $(TARGET) : $(OBJS)
  27.     ar $(temp)$(TARGET) $(OBJS1)
  28.     ar $(temp)$(TARGET) $(OBJS2)
  29.     ar $(temp)$(TARGET) $(OBJS3)
  30.     ar $(temp)$(TARGET) $(OBJS4)
  31.     copy $(temp)$(TARGET) $(TARGET)
  32.     del $(temp)$(TARGET)
  33.  
  34. test.x : test.o $(TARGET)
  35.     $(LK) test.o $(TARGET) $(LIBS) $(CLIBS) -o test.x
  36.  
  37. mlbcomp.x : mlbcomp.o $(TARGET)
  38.     $(LK) mlbcomp.o $(TARGET) $(LIBS) $(CLIBS) -o mlbcomp.x
  39.  
  40.