home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / stub / makefile < prev    next >
Encoding:
Makefile  |  1996-01-15  |  1.2 KB  |  60 lines

  1. # Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details
  2. # Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details
  3. BIN=../../bin
  4. INC=../../include
  5. CFLAGS=-O3 -MD
  6. STUBIFY=../../bin/stubify.exe
  7. C_INCLUDE_PATH := ../../include
  8. LIBRARY_PATH := ../../lib
  9. export
  10. PATH := $(PATH);$(BIN)
  11.  
  12. all :: \
  13.     $(BIN)/djasm.exe \
  14.     $(BIN)/go32-v2.exe \
  15.     $(BIN)/stubedit.exe \
  16.     $(BIN)/stubify.exe \
  17.     $(BIN)/exe2coff.exe \
  18.     $(INC)/stubinfo.h \
  19.     $E
  20.  
  21. $(BIN)/% : %
  22.     cp $< $@
  23.  
  24. sbrk16.ah : sbrk16.asm djasm.exe
  25.     ../bin/djasm.exe sbrk16.asm sbrk16.ah
  26.  
  27. stubify.exe : stubify
  28.     $(STUBIFY) stubify
  29.  
  30. exe2coff.exe : exe2coff
  31.     $(STUBIFY) exe2coff
  32.  
  33. stubify.o : stub.h
  34.  
  35. $(INC)/stubinfo.h : stub.asm stub.map stub2inc.exe
  36.     stub2inc stub.map stub.asm $(INC)/stubinfo.h
  37.  
  38. stub.h stub.map : stub.asm $(BIN)/djasm.exe
  39.     $(BIN)/djasm.exe stub.asm stub.h stub.map
  40.  
  41. djasm.exe : djasm
  42.     $(STUBIFY) djasm
  43.  
  44. $(BIN)/go32-v2.exe : go32-v2.c
  45.     gcc -s $(CFLAGS) go32-v2.c -o $(BIN)/go32-v2.exe -ldbg
  46.  
  47. stub2inc.exe : stub2inc
  48.     $(STUBIFY) stub2inc
  49.  
  50. stubedit.exe : stubedit $(INC)/stubinfo.h
  51.     $(STUBIFY) stubedit
  52.  
  53. clean ::
  54.     -rm -f *.exe djasm stub.h stub.map stubedit stubify *.o stub2inc *.d
  55.  
  56. DEPS := $(wildcard *.d)
  57. ifneq ($(DEPS),)
  58. include $(DEPS)
  59. endif
  60.