head	1.3;
access;
symbols;
locks; strict;
comment	@# @;


1.3
date	2004.10.02.04.39.43;	author heavenzen;	state Exp;
branches;
next	1.2;

1.2
date	2004.09.23.09.42.58;	author heavenzen;	state Exp;
branches;
next	1.1;

1.1
date	2004.09.22.17.38.00;	author heavenzen;	state Exp;
branches;
next	;


desc
@@


1.3
log
@change "TARGET = exconsample" to "TARGET = exConSample" (upper/lower case)
@
text
@#============================================================================
#  Name:
#    Makefile
#
#  Description:
#    Makefile for the Advanced CUnit Test(ACT) examples (Console Example)
#
#  The following nmake targets are available in this makefile:
#
#     all           - make .elf and .mod image files (default)
#     clean         - delete object directory and image files
#     new           - clean and make
#     filename.o    - make object file
#
#   The above targets can be made with the following command:
#
#     make [-f Makefile] [target]
#
#  Assumptions:
#    1. The version of gcc is 3.3 or above.
#    2. The version of GNU make is 3.80 or above.
#
#  Notes:
#    None.
#
#============================================================================

#------------------------------------------------------------------------------
# Software tool and Options
#------------------------------------------------------------------------------
CC = gcc
CFLAGS = -O
AR = ar
ARFLAGS = ru
RANLIB = ranlib
RM = rm

#------------------------------------------------------------------------------
# Path and Object Files
#------------------------------------------------------------------------------

OUTPUT = ../../../bin/
TARGET = exConSample

ALL_PATHS = ../src ../../../include
ALL_INCLUDES = $(addprefix -I, $(ALL_PATHS))

LIBSDIR = ../../../lib/
SRCSDIR = ../src/

LIBS_FILES = libact.a
LIBS = $(addprefix $(LIBSDIR),$(LIB_FILES))

OBJECTS = \
	counter.o \
	counterTest.o \
	exconsampletest.o \
	person.o \
	personTest.o \

OBJS = $(addprefix $(SRCSDIR), $(OBJECTS))

#------------------------------------------------------------------------------
# Target
#------------------------------------------------------------------------------

all: $(TARGET)

$(TARGET): $(OBJS)
	$(CC) -o $@@ $(OBJECTS) -L$(LIBSDIR) ../../../lib/libact.a

.c.o:	
	$(CC) $(CFLAGS) $(ALL_INCLUDES) $(INCLUDES) -c $<


clean:
	-$(RM) $(OBJECTS) $(TARGET)

new:
	$(MAKE) clean
	$(MAKE)

.PHONY: clean all

#------------------------------------------------------------------------------
# Dependencies
#------------------------------------------------------------------------------
@


1.2
log
@*** empty log message ***
@
text
@d43 1
a43 1
TARGET = exconsample
@


1.1
log
@Initial Simple Makefile
@
text
@d1 30
a30 1
# Makefile for the Advanced CUnit Test(ACT) examples
d33 3
a35 2
INCLUDES = ..
LIBS = ../lib
d37 18
a54 3
TARGET = ../../../bin/exconsample
OBJS = \
	exconsampletest.o \
d57 1
d59 7
a65 1
	personTest.o
d70 4
a73 1
	$(CC) -o $@@ $(OBJS) -L$(LIBS) -lembUnit
a74 2
.c.o:
	$(CC) $(CFLAGS) -I$(INCLUDES) -c $<
d77 5
a81 1
	-$(RM) $(TARGET) $(OBJS)
d84 4
@

