From a8edb98ca73d25c094f3b93898060b23d237a944 Mon Sep 17 00:00:00 2001 From: Alain Magloire Date: Mon, 8 Sep 2003 04:57:30 +0000 Subject: [PATCH] Makefile adapter. --- .../internal/core/makefile/NullMakefile.java | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/makefile/NullMakefile.java diff --git a/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/makefile/NullMakefile.java b/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/makefile/NullMakefile.java new file mode 100644 index 00000000000..b3c99b138c6 --- /dev/null +++ b/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/makefile/NullMakefile.java @@ -0,0 +1,48 @@ +/********************************************************************** + * Copyright (c) 2002,2003 QNX Software Systems and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Common Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/cpl-v10.html + * + * Contributors: + * QNX Software Systems - Initial API and implementation +***********************************************************************/ +package org.eclipse.cdt.make.internal.core.makefile; + +import org.eclipse.cdt.make.core.makefile.IStatement; + +/** + * Makefile : ( statement ) * + * statement : rule | macro_definition | comments | empty + * rule : inference_rule | target_rule + * inference_rule : target ':' ( command ) + + * target_rule : target [ ( target ) * ] ':' [ ( prerequisite ) * ] [ ';' command ] + [ ( command ) * ] + * macro_definition : string '=' (string)* + * comments : ('#' (string) ) * + * empty : + * command : prefix_command string + * target : string + * prefix_command : '-' | '@' | '+' + * internal_macro : "$<" | "$*" | "$@" | "$?" | "$%" + */ + +public class NullMakefile extends AbstractMakefile { + + public static IStatement[] empty = new IStatement[0]; + + public NullMakefile() { + } + + public IStatement[] getStatements() { + return empty; + } + + public IStatement[] getBuiltins() { + return empty; + } + + public void addStatement(IStatement statement) { + } +}