home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / kernex32.zip / mwdd_src.zip / 32bits / ext2-os2 / skeleton / ifs / makefile < prev   
Makefile  |  1997-03-27  |  4KB  |  114 lines

  1. #
  2. # $Header: D:/32bits/ext2-os2/skeleton/ifs/RCS/makefile,v 1.4 1997/03/16 13:01:55 Willm Exp Willm $
  3. #
  4.  
  5. # 32 bits OS/2 device driver and IFS support. Provides 32 bits kernel
  6. # services (DevHelp) and utility functions to 32 bits OS/2 ring 0 code
  7. # (device drivers and installable file system drivers).
  8. # Copyright (C) 1995, 1996, 1997  Matthieu WILLM (willm@ibm.net)
  9. #
  10. # This program is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; either version 2 of the License, or
  13. # (at your option) any later version.
  14. #
  15. # This program is distributed in the hope that it will be useful,
  16. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  18. # GNU General Public License for more details.
  19. #
  20. # You should have received a copy of the GNU General Public License
  21. # along with this program; if not, write to the Free Software
  22. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  23.  
  24. #
  25. # Path definitions
  26. #
  27. !include ../../makefile.inc
  28.  
  29. CC       = icc -q
  30. CFLAGS   = -Ge- -Gs- -Gr+ -Rn -Ss+ -O -G5
  31. #CFLAGS   = -Ge- -Gs- -Gr+ -Rn -Ss+ -Ti+
  32.  
  33. AS        = alp
  34. ASFLAGS   = -Mb -Li
  35.  
  36. CDEFINES  = -DFSD32 -DDYNAMIC_DEVHELP -DMWDD32_VER=$(MWDD32_VERSION)
  37. CINCLUDES = -I.                       \
  38.             -I../../include           \
  39.             -I$(VACPATH)/include      \
  40.             -I$(VACPATH)/include/os2  \
  41.             -I\os2\security\dev\h     \
  42.             -I$(DDKPATH)/h
  43.  
  44. ADEFINES   = -D:FSD32
  45. AINCLUDES = -Fdi:$(DDKPATH)\inc -Fdi:..\..\include\os2
  46.  
  47. .c.obj:
  48.         @echo $<
  49.         @$(CC) -c $(CFLAGS) $(CDEFINES) -Fa$(@:.obj=.s) -Fo$@ $(CINCLUDES) $<
  50.  
  51. .asm.obj:
  52.         @echo $<
  53.         @$(AS) $(ASFLAGS) $(ADEFINES) $(AINCLUDES) $< -Fo:$@ -Fl:$(@:.obj=.lst)
  54.  
  55. all:fsd32.ifs
  56.  
  57. AOBJS = fs_attribute.obj         \
  58.         fs_name.obj              \
  59.  
  60. COBJS = fs32_allocatepagespace.obj \
  61.         fs32_chdir.obj           \
  62.         fs32_chgfileptr.obj      \
  63.         fs32_close.obj           \
  64.         fs32_commit.obj          \
  65.         fs32_delete.obj          \
  66.         fs32_dopageio.obj        \
  67.         fs32_init.obj            \
  68.         fs32_exit.obj            \
  69.         fs32_fileattribute.obj   \
  70.         fs32_fileinfo.obj        \
  71.         fs32_findclose.obj       \
  72.         fs32_findfirst.obj       \
  73.         fs32_findfromname.obj    \
  74.         fs32_findnext.obj        \
  75.         fs32_flushbuf.obj        \
  76.         fs32_fsctl.obj           \
  77.         fs32_fsinfo.obj          \
  78.         fs32_ioctl.obj           \
  79.         fs32_mkdir.obj           \
  80.         fs32_mount.obj           \
  81.         fs32_move.obj            \
  82.         fs32_newsize.obj         \
  83.         fs32_opencreate.obj      \
  84.         fs32_openpagefile.obj    \
  85.         fs32_pathinfo.obj        \
  86.         fs32_read.obj            \
  87.         fs32_rmdir.obj           \
  88.         fs32_shutdown.obj        \
  89.         fs32_banner.obj          \
  90.         fs32_write.obj
  91.  
  92. fsd32.ifs:fsd32.def $(AOBJS) $(COBJS)
  93.         icc @<<
  94. $(CFLAGS) -Fe$@ -Q -B"/MAP /EXEPACK:2 /ALIGNMENT:4"
  95. $(AOBJS)
  96. $(COBJS)
  97. $(DDKPATH)\lib\os2386p.lib
  98. $(DDKPATH)\lib\vdh.lib
  99. $(IFSTKTPATH)\fshelper.lib
  100. fsd32.def
  101. $(EXT2OS2_BASE)\fsh32\fsh32.lib
  102. <<
  103.         mapsym $(@:.ifs=.map)
  104.         -copy $(@:.ifs=.sym) e:\mwfs
  105.         -copy $@ e:\mwfs
  106.  
  107. clean:
  108.         -del *.obj
  109.         -del *.s
  110.         -del *.lst
  111.         -del *.ifs
  112.         -del *.map
  113.         -del *.sym
  114.