Makefile with source code in 2 directory

view story

http://forums.fedoraforum.org – Dear friends, my project has structure like $ls new files Makefile help.c table.c callbk_list.h cwlst.h where files is a directory, with hundreds of C code, which are the functions in the main code table.c I tried to compile with Makefile as: Code: CC=gcc CFLAGS =-O3 SUBDIR=files PCONF1=pkg-config --cflags --libs gtk+-2.0 objects := $(wildcard $(SUBDIR)/*.o) ptbl: $(objects) help.c  table.c  callbk_list.h  cwlst.h         $(CC) `$(PCONF1)` $(objects) help.c  table.c -o ptbl $(SUBDIR)/%.o: $(SUBDIR)/%.c       &nb (HowTos)