home *** CD-ROM | disk | FTP | other *** search
/ ftp.whtech.com / ftp.whtech.com.7z / ftp.whtech.com / emulators / v9t9 / linux / sources / V9t9 / source / Generate / Makefile.in < prev    next >
Encoding:
Makefile  |  2006-10-19  |  740 b   |  46 lines

  1.  
  2. TOP = @TOP@
  3. SRC = $(TOP)
  4.  
  5. INCS = -I$(TOP) -I$(TOP)/OSLib -I.
  6.  
  7. CC = @CC@
  8. LD = @LD@
  9. CFLAGS = $(INCS) @CFLAGS@
  10. LDFLAGS = @LDFLAGS@
  11. ARFLAGS = @ARFLAGS@
  12.  
  13. #SRCS = vdpdraw.pl
  14. SRCS = generatevdpdrawrow.c generatevdpdrawrowtext.c
  15. EXECS = $(SRCS:%.c=%)
  16. GENSRCS = $(TOP)/vdpdrawrow.c $(TOP)/vdpdrawrowtext.c
  17.  
  18.  
  19. all: compile
  20.  
  21. %: %.c  $(TOP)/v9t9_config.h
  22.     $(CC) $(CFLAGS) -o $@.o $<
  23.     gcc -o $@ $@.o 
  24.  
  25. $(SRC)/vdpdrawrow.c: generatevdpdrawrow
  26.     ./$< > $@
  27.  
  28. $(SRC)/vdpdrawrowtext.c: generatevdpdrawrowtext
  29.     ./$< > $@
  30.  
  31. #exec:
  32. #    perl vdpdraw.pl >$(SRC)/vdpdrawrow.c
  33. #    perl vdpdraw.pl -six >$(SRC)/vdpdrawrowtext.c
  34.  
  35. #$(SRC)/vdpdrawrow.c $(SRC)/vdpdrawrowtext.c: exec
  36.  
  37. clean: 
  38.     rm -f $(EXECS) $(GENSRCS) *.o *.obj
  39.  
  40. dep: 
  41.  
  42. config:
  43.  
  44. compile: $(EXECS) $(GENSRCS)
  45.  
  46.