Thread View: comp.std.c++
1 messages
1 total messages
Started by JEE-IN KIM
Thu, 24 Jan 1991 21:01
A makefile for C++
Author: 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
---------------------------
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads