Topic: A makefile for C++
Author: kim@unagi.cis.upenn.edu (JEE-IN KIM)
Date: 24 Jan 91 21:01:38 GMT Raw View
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
---------------------------