13

problem creating a makefile

view full story
linux-howto

http://www.unix.com – hello, I'm trying to create a makefile to run multiple c files. I am able to run one c file only with the code I have when I tried to run 2 or more c files I'm not able. here is my code Code: # $Source: /home/hectormasencio/make/Makefile,v $ # $Date: 2012/11/27 11:35:30 $ CC= gcc OBJS= temp.o prueba.o .c.o:     $(CC) -c -Wall $(CFLAGS)  $<     all:    temp temp: $(OBJS)     $(CC) $(OBJS) -o temp -lm clean:     rm -f *.o core clobber: clean     rm -f temp TEST # End Makefile when I tried to add the other c (HowTos)