MAKEFILE 910 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. EXES = qcc
  2. NTEXES = qcc.exe
  3. #==============================================================================
  4. EXT= .o
  5. all: $(EXES)
  6. clean:
  7. rm *.o *.obj $(EXES) $(NTEXES)
  8. next:
  9. make "CFLAGS = -g -Wall -I.."
  10. nextinstall:
  11. make "CFLAGS = -O4 -g -Wall -I.. -arch i386 -arch hppa"
  12. cp $(EXES) /LocalApps
  13. alpha:
  14. make "CFLAGS = -g -I.." "LDFLAGS = -lm"
  15. alphainstall:
  16. make "CFLAGS = -O4 -I.." "LDFLAGS = -lm"
  17. cp $(EXES) /LocalApps
  18. nt:
  19. nmake /nologo "CFLAGS = -nologo -Zi -DWIN32 -I.." "LDFLAGS = " "EXT = .obj"
  20. ntinstall:
  21. nmake /nologo "CFLAGS = -nologo -Ox -G5 -DWIN32 -I.." "LDFLAGS = " "EXT = .obj"
  22. cp $(NTEXES) f:\nt\id
  23. #==============================================================================
  24. QCCFILES = qcc$(EXT) pr_lex$(EXT) pr_comp$(EXT) cmdlib$(EXT)
  25. qcc : $(QCCFILES)
  26. $(CC) $(CFLAGS) -o qcc $(QCCFILES)
  27. cmdlib$(EXT) : ../cmdlib.c
  28. $(CC) $(CFLAGS) -c -o cmdlib$(EXT) ../cmdlib.c