1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-21 21:52:10 +02:00

Some fixes to get the HelloWorld Makefile project template working on Linux.

This commit is contained in:
Doug Schaefer 2007-05-25 04:16:17 +00:00
parent 4585e4c2a8
commit f6de791533
2 changed files with 2 additions and 4 deletions

View file

@ -73,8 +73,7 @@ public class SimpleMakefileGenerator extends ProcessRunner {
} }
Map macros = new HashMap(template.getValueStore()); Map macros = new HashMap(template.getValueStore());
if (Platform.getOS().equals(Platform.OS_WIN32)) macros.put("exe", Platform.getOS().equals(Platform.OS_WIN32) ? ".exe" : ""); //$NON-NLS-1$ $NON-NLS-2$ $NON-NLS-3$
macros.put("exe", ".exe");
fileContents = replaceMacros(fileContents, macros); fileContents = replaceMacros(fileContents, macros);
contents = new ByteArrayInputStream(fileContents.getBytes()); contents = new ByteArrayInputStream(fileContents.getBytes());

View file

@ -1,4 +1,3 @@
CFLAGS = -O2 -g -Wall -fmessage-length=0
CXXFLAGS = -O2 -g -Wall -fmessage-length=0 CXXFLAGS = -O2 -g -Wall -fmessage-length=0
OBJS = {{baseName}}.o OBJS = {{baseName}}.o
@ -8,7 +7,7 @@ LIBS =
TARGET = {{baseName}}{{exe}} TARGET = {{baseName}}{{exe}}
$(TARGET): $(OBJS) $(TARGET): $(OBJS)
$(CC) -o $(TARGET) $(OBJS) $(LIBS) $(CXX) -o $(TARGET) $(OBJS) $(LIBS)
all: $(TARGET) all: $(TARGET)