Results 1 to 1 of 1
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))
...
- 06-27-2011 #1Just Joined!
- Join Date
- Jun 2011
- Posts
- 1
makefile that builds multiple executables from multiple sources?
In windows, this would be appropriate:
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.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) $<


Reply With Quote