home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / c / 11402 < prev    next >
Encoding:
Text File  |  1992-07-21  |  2.2 KB  |  57 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!gatech!ukma!vlsi!starbase.spd.louisville.edu!tjgorn01
  3. From: tjgorn01@rigel.spd.louisville.edu (Tim Gornet)
  4. Subject: Converting MASM in makefile to use inline assembler
  5. Message-ID: <tjgorn01.711746895@starbase.spd.louisville.edu>
  6. Sender: news@vlsi.louisville.edu (Network News System)
  7. Nntp-Posting-Host: rigel.spd.louisville.edu
  8. Organization: University of Louisville
  9. Date: Tue, 21 Jul 1992 19:28:15 GMT
  10. Lines: 45
  11.  
  12. I am attempting to compile some software using a makefile in Microsoft C
  13. version 6.0. I do not have the Macro Assembler MASM but need to compile
  14. some software that calls the MASM. I am not a C programmer, but am usually
  15. able to debug and compile with a little effort. I have also checked through
  16. the C and advanced C techniques books from MS and can't find the answer to my
  17. question. 
  18. Following is a representation of my makefile that I am using. I am able to
  19. get all the C stuff to compile but it blows out at the MASM stuff. Since I do
  20. not have MASM is there any way I can edit the makefile so that it uses the 
  21. inline assembler that is included with C to get this beast to compile. I am
  22. not knowledgable enough to edit any of the files being compiled. Or do I have
  23. to get MASM to get this to work. Thanks for any help.
  24.  
  25. ---- Start of Makefile
  26.  
  27. F = -FPi
  28. CFLAGS1 = -nologo -c -Ot -AL -DMSC -DPC $(F)
  29. CFLAGS2 = -nologo -c -Ot -AL -DPC -DMSC -DSIGMA -DCGA -DEGA -DVGA -DHERCULES -DPOSTSCRIPT -DHPGL -DDXY $(F)
  30. MFLAGS = -MX
  31. HDRS= VOGLE.H
  32.  
  33. ...
  34. --- A bunch of C targets that compiled okay
  35. ...
  36.  
  37. MOUSE.OBJ:        ..\DRIVERS\IBMPC\MOUSE.ASM
  38.     MASM $(MFLAGS) ..\DRIVERS\IBMPC\MOUSE;
  39.  
  40. MISC.OBJ:        ..\DRIVERS\IBMPC\MISC.ASM
  41.     MASM $(MFLAGS) ..\DRIVERS\IBMPC\MISC;
  42.  
  43. .....
  44. --- Some more MASM calls to end of file.
  45. ...
  46. -- 
  47. --------------------------------------------------------------------------
  48. Tim Gornet                    PHONENET: (502)588-0714
  49.   Computer Aided Engineering Consultant     FAXNET  : (502)588-8890 
  50.                         SLUGNET:
  51. INTERNET: tjgorn01@starbase.spd.louisville.edu      CAE Center
  52. BITNET  : tjgorn01@ulkyvx.bitnet               University of Louisville
  53.                                Louisville, KY 40292
  54. --------------------------------------------------------------------------
  55.  
  56.  
  57.