home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / kernex32.zip / mwdd_src.zip / 32bits / ext2-os2 / mwdd32 / makefile next >
Makefile  |  1997-03-16  |  6KB  |  142 lines

  1. #
  2. # $Header: d:\\32bits\\ext2-os2\\mwdd32\\rcs\\makefile,v 1.5 1997/03/16 12:44:29 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       = ilink
  33.  
  34. AS        = alp
  35. ASFLAGS   = -Mb -Li
  36.  
  37. CDEFINES   = -DOS2 -DMWDD32 -DMWDD32_VER=$(MWDD32_VERSION)
  38. ADEFINES   = -D:MWDD32
  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_dd:
  43.         @echo $<
  44.         @$(CC) -c $(CFLAGS) $(CDEFINES) -Fa$(@:.obj_dd=.s_dd) -Fo$@ $(CINCLUDES) $<
  45.  
  46. .asm.obj_dd:
  47.         @echo $<
  48.         @$(AS) $(ASFLAGS) $(ADEFINES) $(AINCLUDES) $< -Fo:$@ -Fl:$(@:.obj_dd=.lst_dd)
  49.  
  50. all:mwdd32.sys
  51.  
  52. AOBJS =   ../devhlp32/DevHlp32_VMLock.obj_dd             \
  53.           ../devhlp32/DevHlp32_VMUnLock.obj_dd           \
  54.           ../devhlp32/DevHlp32_VirtToLin.obj_dd          \
  55.           ../devhlp32/DevHlp32_GetDosVar.obj_dd          \
  56.           ../devhlp32/DevHlp32_Security.obj_dd           \
  57.           ../devhlp32/DevHlp32_AttachToDD.obj_dd         \
  58.           ../devhlp32/DevHlp32_AllocOneGDTSelector.obj_dd\
  59.           ../devhlp32/DevHlp32_FreeGDTSelector.obj_dd    \
  60.           ../devhlp32/DevHlp32_SaveMessage.obj_dd        \
  61.           ../devhlp32/DevHlp32_setIRQ.obj_dd             \
  62.           ../devhlp32/DevHlp32_UnSetIRQ.obj_dd           \
  63.           ../devhlp32/DevHlp32_EOI.obj_dd                \
  64.           ../devhlp32/DevHlp32_InternalError.obj_dd      \
  65.           ../devhlp32/DevHlp32_VMAlloc.obj_dd            \
  66.           ../devhlp32/DevHlp32_VMFree.obj_dd             \
  67.           ../devhlp32/DevHlp32_ProcBlock.obj_dd          \
  68.           ../devhlp32/DevHlp32_ProcRun.obj_dd            \
  69.           ../devhlp32/DevHlp32_LinToPageList.obj_dd      \
  70.           ../devhlp32/DevHlp32_PageListToLin.obj_dd      \
  71.           ../devhlp32/DevHlp32_yield.obj_dd              \
  72.           ../devhlp32/DevHlp32_GetInfoSegs.obj_dd        \
  73.           ../devhlp32/DevHlp32_VerifyAccess.obj_dd       \
  74.           ../devhlp32/DevHlp32_OpenEventSem.obj_dd       \
  75.           ../devhlp32/DevHlp32_CloseEventSem.obj_dd      \
  76.           ../devhlp32/DevHlp32_PostEventSem.obj_dd       \
  77.           ../devhlp32/DevHlp32_ResetEventSem.obj_dd      \
  78.           ../util/sec32_attach_ses.obj_dd                \
  79.           mwdd32_pre_init_base.obj_dd
  80.  
  81. COBJS =   mwdd32_idc.obj_dd                              \
  82.           mwdd32_open.obj_dd                             \
  83.           mwdd32_close.obj_dd                            \
  84.           mwdd32_ioctl.obj_dd                            \
  85.           mwdd32_init_base.obj_dd                        \
  86.           mwdd32_strategy.obj_dd                         \
  87.           mwdd32_shutdown.obj_dd                         \
  88.           mwdd32_init_complete.obj_dd                    \
  89.           mwdd32_banner.obj_dd                           \
  90.           mwdd32_invalid_command.obj_dd                  \
  91.           ../devhlp32/DevHlp32_AttachDD.obj_dd           \
  92.           ../devhlp32/DevHlp32_AllocGDTSelector.obj_dd   \
  93.           ../util/vsprintf.obj_dd                        \
  94.           ../util/strtoul.obj_dd                         \
  95.           ../util/strtol.obj_dd                          \
  96.           ../util/ctype.obj_dd                           \
  97.           ../util/atol.obj_dd                            \
  98.           ../util/strupr.obj_dd                          \
  99.           ../util/strpbrk.obj_dd                         \
  100.           ../util/strtok.obj_dd                          \
  101.           ../util/fnmatch.obj_dd
  102.  
  103. mwdd32.sys: $(AOBJS)            \
  104.             $(COBJS)            \
  105.             mwdd32_start.obj_dd \
  106.             mwdd32_end.obj_dd   \
  107.             mwdd32.def
  108.         $(LD) @<<
  109. /MAP /EXEPACK:2 /NOD /ALIGNMENT:4
  110. mwdd32_start.obj_dd
  111. $(AOBJS)
  112. $(COBJS)
  113. mwdd32_end.obj_dd
  114. $(DDKPATH)\lib\os2386p.lib
  115. mwdd32.def
  116. /O:mwdd32.sys
  117. <<
  118.         mapsym $(@:.sys=.map)
  119.         -copy $@             g:\os2
  120.         -copy $(@:.sys=.sym) g:\os2
  121.  
  122.  
  123. clean::
  124.         -del mwdd32.sys
  125.         -del mwdd32.map
  126.         -del mwdd32.sym
  127.         -del *.obj_dd
  128.         -del *.lst_dd
  129.         -del *.s_dd
  130.         -del ..\*.obj_dd
  131.         -del ..\*.lst_dd
  132.         -del ..\*.s_dd
  133.         -del ..\devhlp32\*.obj_dd
  134.         -del ..\devhlp32\*.lst_dd
  135.         -del ..\devhlp32\*.s_dd
  136.         -del ..\util\*.obj_dd
  137.         -del ..\util\*.lst_dd
  138.         -del ..\util\*.s_dd
  139.  
  140.  
  141.  
  142.