Article View: comp.std.c++
Article #800A makefile for C++
From: JEE-IN KIM
Date: Thu, 24 Jan 1991 21:01
Date: Thu, 24 Jan 1991 21:01
49 lines
1434 bytes
1434 bytes
Hi,
I am converting a C program of an X-window application into its
equivalent (?) C++ (= g++) code.
The following is the makefile of the old C program. Could anyone
please let me know how to change the makefile so that it works
for a C++ program?
Please E-mail me. Thanks in advance.
Jee-In
==================================================================
TAGS = ctags
RM = -rm -f
CDEBUGFLAGS = -g
CFLAGS = $(CDEBUGFLAGS) $(INCLUDES) $(DEFINES)
LDFLAGS = $(LIBS) $(CDEBUGFLAGS) -Bstatic
INCLUDES = -I/usr/new/include -I/usr/include/X11
LIBS = -lXaw -lXmu -lXt -lX11
SRCS= test.c
OBJS= test.o
PROGRAM = test
all:: test
test: $(OBJS) $(LOCAL_LIBRARIES)
$(CC) -o $@ $(OBJS) $(LOCAL_LIBRARIES) $(LDFLAGS)
relink::
$(RM) $(PROGRAM)
$(MAKE) $(MFLAGS) $(PROGRAM)
tags::
$(TAGS) *.[ch]
clean::
$(RM) $(PROGRAM) *.o
---------------------------
Jee-In Kim
kim@unagi.cis.upenn.edu
---------------------------
Technical Details
Message-ID:
<36264@netnews.upenn.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!netnews.upenn.edu!unagi.cis.upenn.edu!kimShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!netnews.upenn.edu!unagi.cis.upenn.edu!kim From: kim@unagi.cis.upenn.edu (JEE-IN KIM) Newsgroups: comp.std.c++ Subject: A makefile for C++ Message-ID: <36264@netnews.upenn.edu> Date: 24 Jan 91 21:01:38 GMT Sender: news@netnews.upenn.edu Reply-To: kim@unagi.cis.upenn.edu (JEE-IN KIM) Distribution: usa Organization: University of Pennsylvania Lines: 49