🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.interviews
Article #152

Imakefile to make C programs also. needed.

#152
From: Ramsarooni
Date: Mon, 03 Aug 1992 02:17
41 lines
1622 bytes
Hi!,

I have developed an Unidraw application for database operations.. 
this interface makes use of a library that was written in C. 

I am able to link the .o files produced by a cc complier with
rest of interface compiled with CC (which calls cc ).. by using the
linkage-specifications. But it is cumbersome to first compile C programs
and then the C++ ones..

I was wondering if anyone knows how to write Imakefile that would 
compile the C files and link the .o files to
rest of the unidraw application... any pointers??


A sample Imakefile that works with the .o's produced by cc:

XCOMM DO NOT EDIT -- generated by ibmkmf
 
SPECIAL_IMAKEFLAGS = \
    -f pun-imake -s pun-make -DUseInstalled -DTurnOptimizingOn=0
 
SRCS = \
    pued.$(CCSUFFIX) \
    main.$(CCSUFFIX) \
    gencmds.$(CCSUFFIX)\

OBJS = \
    pued.o \
    main.o \
    gencmds.o \ -------------------->these from C++
    c_programs.o  ------------------> from C program.
AOUT = pun.exe
 
Use_libUnidraw()
Use_2_6()
ComplexProgramTarget(pun)
 
MakeObjectRule(main,main,NullParameter)
MakeObjectRule(pued,pued,NullParameter)
MakeObjectRule(gencmds,gencmds,NullParameter)
Technical Details
Message-ID: <1992Aug3.021733.3859@ulowell.ulowell.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!ulowell!cs.ulowell.edu!rramach

Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.interviews
Path: arc1-ca.pugleaf.net!sparky!uunet!ulowell!cs.ulowell.edu!rramach
From: rramach@cs.ulowell.edu (Ramsarooni)
Subject: Imakefile to make C programs also. needed.
Message-ID: <1992Aug3.021733.3859@ulowell.ulowell.edu>
Sender: usenet@ulowell.ulowell.edu (News manager - ulowell)
Organization: University of Massachusetts at Lowell Computer Science
Distribution: usa
Date: Mon, 3 Aug 1992 02:17:33 GMT
Lines: 41