In windows, this would be appropriate:

Code:
 
all : file1.exe file2.exe file3.exe

LIBRARIES = #list of libraries

#----------------------------------------------------------------------------
CC = gcc

OPTIONS = -s

LIBS = $(addprefix -l , $(LIBRARIES))
 
%exe : %o
	$(CC) -s -o $[at symbol] $< $(LIBS)

%o : %c
	$(CC) -c $(OPTIONS) $<
But since linux executables have no extension whatsoever, how would I make this work? I am not new to linux by far, but I am new to writing makefiles. I would normally use an ide, but it's too small a project.