Products
and Services Support
and Docs Training Partner Programs About Red
Hat
  download storecart
red hat logo
redhat.comredhat network

Red Hat Documentation

Overview | HOWTOs | mini-HOWTOs | FAQs | Linux Man-Pages

Process Monitor HOW-TO for Linux: Makefile Next Previous Contents

6. Makefile

# From your browser save this file as text-file named as 'Makefile'.


EXE=procautostart
SRCS=procautostart.cpp debug.cpp 
OBJS=procautostart.o  debug.o
CXX=gcc
HOSTFLAG=-DLinux
#HOSTFLAG=-DSunOS
# Do not use compiler optimizer -O as this may break the program
# Use debug flag to enable the debug() function. If DEBUG is not
# defined than the function debug() is set to void(), similar 
# to assert()
# Use options -Wall (all warning msgs) -O3 (optimization)
#MYCFLAGS=-DDEBUG -g -Wall
MYCFLAGS=-O3 -Wall
all: $(OBJS)
        $(CXX) $(HOSTFLAG) $(MYCFLAGS) $(OBJS) -o $(EXE)
$(OBJS): $(SRCS)
        $(CXX) -c $(HOSTFLAG) $(MYCFLAGS) $(SRCS)
clean:
        rm -f *.o *.log *.log.old *.pid core err a.out afiedt.buf
        rm -f $(EXE)


Next Previous Contents

 

 


 
© 2001 Red Hat, Inc. All rights reserved.
About Red Hat  :  Legal statement  :  Privacy statement  :  Y2K statement  :  Contact Red Hat