my first makefile succeed

/*#include <file.h>

You should use #include "file.h" when file.h is in the same directory of the file that include it.

This is the major error I confronted.
*/
OBJS = hellomake.o hellofunc.o
CC = g++
DEBUG = -g
CFLAGS = -Wall -c $(DEBUG)
LFLAGS = -Wall $(DEBUG)

p1 : $(OBJS)
$(CC) $(LFLAGS) $(OBJS) -o p1

hellomake.o : hellomake.h hellofunc.c
$(CC) $(CFLAGS) hellomake.c

hellofunc.o : hellomake.h
$(CC) $(CFLAGS) hellofunc.c

clean:
\rm *.o *~ p1
Is there a question here? What error are you getting?
Topic archived. No new replies allowed.