mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 06:02:11 +02:00
Some fixes to get the HelloWorld Makefile project template working on Linux.
This commit is contained in:
parent
4585e4c2a8
commit
f6de791533
2 changed files with 2 additions and 4 deletions
|
@ -73,8 +73,7 @@ public class SimpleMakefileGenerator extends ProcessRunner {
|
|||
}
|
||||
|
||||
Map macros = new HashMap(template.getValueStore());
|
||||
if (Platform.getOS().equals(Platform.OS_WIN32))
|
||||
macros.put("exe", ".exe");
|
||||
macros.put("exe", Platform.getOS().equals(Platform.OS_WIN32) ? ".exe" : ""); //$NON-NLS-1$ $NON-NLS-2$ $NON-NLS-3$
|
||||
|
||||
fileContents = replaceMacros(fileContents, macros);
|
||||
contents = new ByteArrayInputStream(fileContents.getBytes());
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
CFLAGS = -O2 -g -Wall -fmessage-length=0
|
||||
CXXFLAGS = -O2 -g -Wall -fmessage-length=0
|
||||
|
||||
OBJS = {{baseName}}.o
|
||||
|
@ -8,7 +7,7 @@ LIBS =
|
|||
TARGET = {{baseName}}{{exe}}
|
||||
|
||||
$(TARGET): $(OBJS)
|
||||
$(CC) -o $(TARGET) $(OBJS) $(LIBS)
|
||||
$(CXX) -o $(TARGET) $(OBJS) $(LIBS)
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue