Hi,
I'm trying to make a makefile but after i enter the command
make makefile
it says nothing to be made in the makefile, can someone please help me?
Nd.c depends on Pd.h
Pd.c depends on Pd.h
Md.c depends on md.h
md.h depends on Rd.h
# Makefile
CC = gcc
LD = $(CC)
DEPEND = mkdep
CFLAGS = -O2 -Wall
CFILES =\
Nd.c\
Pd.c\
Md.c
HFILES =\
md.h\
Pd.h\
Rd.h
OFILES = $(CFILES:%.c=%.o)
myprogram: $(OFILES)
$(LD) -o $@ $(OFILES)
Nd.o: Nd.c Pd.h
Pd.o: Pd.c Pd.h
Md.o: Md.c md.h
md.h: Rd.h
depend:
$(DEPEND) $(CFLAGS) $(CFILES)
clean:
rm -f *.o *.bak