home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / slfinsta.zip / makefile < prev    next >
Makefile  |  2000-03-27  |  2KB  |  61 lines

  1. # $Id: makefile,v 1.2 2000/03/27 19:44:37 bsmith Exp $ 
  2.  
  3. # Installer Makefile
  4.  
  5. CC = gcc
  6. RM = rm -f
  7. RC = rc
  8. MAKE = make
  9. COMPRESS = lxlite
  10.  
  11. DEFS =
  12. LIBS =
  13.  
  14. CFLAGS = -O2 -Zomf -Zsys -Zmt -D__ST_MT_ERRNO__ -I./include -Wall
  15. LDFLAGS = -lrexx
  16. RCFLAGS = -r
  17.  
  18.  
  19. OBJECTS = globals.obj install.obj uac_comm.obj uac_crc.obj instsup.obj \
  20.           uac_crt.obj uac_dcpr.obj uac_sys.obj unace.obj dw.obj rexx.obj \
  21.           picture.obj
  22.  
  23. SOURCES = globals.c install.c uac_comm.c uac_crc.c instsup.c \
  24.           uac_crt.c uac_dcpr.c uac_sys.c unace.c dw.c rexx.c \
  25.           picture.c
  26.  
  27. #all: sfx.exe packinst
  28. all: sfx.exe
  29.  
  30. $(OBJECTS):
  31.     $(CC) $(CFLAGS) -c $<    
  32.  
  33. packinst: packinst/Makefile Makefile
  34.     @cd packinst
  35.     $(MAKE) -f Makefile all
  36.  
  37. sfx.exe:  $(OBJECTS)
  38.     $(RC) $(RCFLAGS) install.rc
  39.     $(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) -o sfx.exe $(OBJECTS) install.def install.res
  40.     $(COMPRESS) sfx.exe
  41.  
  42. clean: 
  43.     $(RM) $(OBJECTS) install.exe install.res sfx.exe
  44.  
  45. globals.obj: globals.c include/globals.h include/acestruc.h include/unace.h
  46. install.obj: install.c install.h instsup.h
  47. instsup.obj: instsup.c
  48. rexx.obj: rexx.c
  49. uac_comm.obj: uac_comm.c include/globals.h include/uac_dcpr.h include/uac_comm.h
  50. uac_crc.obj: uac_crc.c include/uac_crc.h
  51. uac_crt.obj: uac_crt.c include/os.h include/attribs.h include/globals.h include/uac_crt.h include/uac_sys.h
  52. uac_dcpr.obj: uac_dcpr.c include/os.h include/globals.h include/portable.h include/uac_comm.h include/uac_crc.h \
  53.           include/uac_dcpr.h include/uac_sys.h
  54. uac_sys.obj: uac_sys.c include/os.h include/globals.h include/uac_sys.h
  55. unace.obj: unace.c include/os.h include/globals.h include/portable.h include/uac_comm.h include/uac_crc.h include/uac_crt.h \
  56.            include/uac_dcpr.h include/uac_sys.h
  57. dw.obj: dw.c
  58. picture.obj: picture.c picture.h
  59. install.res: install.rc install.h
  60.  
  61.