home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / sdk / win32s / ut / samples / utsample / makefile < prev    next >
Encoding:
Makefile  |  1995-07-11  |  1.1 KB  |  48 lines

  1. # *********************************************************
  2. #  makefile: for UTSamp sample
  3. #
  4. #
  5. # *********************************************************
  6.  
  7. !include <ntwin32.mak>
  8.  
  9. proj = utsamp
  10.  
  11. all: $(proj)32.dll $(proj).exe
  12.  
  13. #
  14. # utsamp16.dll must be built using makefile.16 16-bit tools
  15. #
  16.  
  17. # Update the resource if necessary
  18.  
  19. $(proj).rbj: $*.rc $*.h $*.dlg $*.ico
  20.     rc -r -fo $*.res $(cvars) $*.rc
  21.  
  22. # Update the object file if necessary
  23.  
  24. $(proj).obj: $*.c
  25.     $(cc) $(cdebug) $(cflags) $(cvars) $*.c
  26.  
  27. # Update the executable file if necessary, and if so, add the resource
  28. # back in
  29.  
  30. $(proj).exe: $*.obj $*.res $(proj)32.lib
  31.     $(link) $(linkdebug) $(guiflags) \
  32.     $*.obj $*.res \
  33.     $(guilibs) $(proj)32.lib \
  34.     -out:$@
  35.  
  36. $(proj)32.obj: $*.c $(proj).h
  37.     $(cc) $(cflags) $(cvars) $(cdebug) $*.c
  38.  
  39. $(proj)32.lib $(proj)32.exp: $*.obj $*.def
  40.     $(implib) -machine:$(CPU) -def:$*.def $*.obj -out:$*.lib
  41.  
  42. $(proj)32.dll: $*.obj $*.def $*.exp
  43.     $(link) $(dlllflags) $(ldebug) \
  44.     -base:0x20000000 \
  45.     -out:$@ \
  46.     $*.exp $*.obj \
  47.     $(guilibs) w32sut32.lib mpr.lib
  48.