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 / ses / makefile next >
Makefile  |  1997-03-16  |  3KB  |  96 lines

  1. #
  2. # $Header: d:\\32bits\\ext2-os2\\skeleton\\ses\\rcs\\makefile,v 1.3 1997/03/16 13:13:43 Willm Exp $
  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.  
  32. LD        = icc
  33.  
  34. AS        = alp
  35. ASFLAGS   = -Mb -Li
  36.  
  37. CDEFINES   = -DDYNAMIC_DEVHELP -DMWDD32_VER=$(MWDD32_VERSION)
  38. ADEFINES   = -D:DYNAMIC_DEVHELP
  39. CINCLUDES  = -I$(VACPATH)\include\os2 -I$(DDKPATH)\h -I$(DDKPATH)/src/dev/dasd/diskh -I/os2/security/dev/h -I/os2/security/dev/ssskpi -I. -I../../include -I../../include/os2
  40. AINCLUDES  = -Fdi:$(DDKPATH)/inc -Fdi:../include/os2
  41.  
  42. .c.obj:
  43.         @echo $<
  44.         @$(CC) -c $(CFLAGS) $(CDEFINES) -Fa$(@:.obj=.s) -Fo$@ $(CINCLUDES) $<
  45.  
  46. .asm.obj:
  47.         @echo $<
  48.         @$(AS) $(ASFLAGS) $(ADEFINES) $(AINCLUDES) $< -Fo:$@ -Fl:$(@:.obj=.lst)
  49.  
  50. all:sec32.sys
  51.  
  52. AOBJS =   sec32_pre_init_base.obj
  53.  
  54. COBJS =   sec32_idc.obj                               \
  55.           sec32_open.obj                              \
  56.           sec32_close.obj                             \
  57.           sec32_ioctl.obj                             \
  58.           sec32_init_base.obj                         \
  59.           sec32_strategy.obj                          \
  60.           sec32_shutdown.obj                          \
  61.           sec32_init_complete.obj                     \
  62.           sec32_data.obj                              \
  63.           sec32_banner.obj                            \
  64.           sec32_callbacks.obj                         \
  65.           sec32_open_pre.obj                          \
  66.           sec32_open_post.obj                         \
  67.           sec32_invalid_command.obj
  68.  
  69. sec32.sys: $(AOBJS)             \
  70.             $(COBJS)            \
  71.             sec32_start.obj     \
  72.             sec32_end.obj       \
  73.             sec32.def
  74.         $(LD) @<<
  75. $(CFLAGS) -Fe$@ -B"/MAP /EXEPACK:2 /NOD /ALIGNMENT:4"
  76. sec32_start.obj
  77. $(AOBJS)
  78. $(COBJS)
  79. sec32_end.obj
  80. $(DDKPATH)\lib\os2386p.lib
  81. sec32.def
  82. <<
  83.         mapsym $(@:.sys=.map)
  84.         -copy $@             g:\os2
  85.         -copy $(@:.sys=.sym) g:\os2
  86.  
  87.  
  88. clean::
  89.         -del sec32.sys
  90.         -del sec32.map
  91.         -del sec32.sym
  92.         -del *.obj
  93.         -del *.lst
  94.         -del *.s
  95.  
  96.