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


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

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

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


desc
@@


1.3
log
@*** empty log message ***
@
text
@#============================================================================
#  Name:
#    Makefile
#
#  Description:
#    Makefile for the Advanced CUnit Test(ACT) Tests
#
#  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 = actTests

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

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

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

OBJECTS = \
	actAssertTest.o \
	actMockTestCase.o \
	actStdLibTest.o \
	actTestCallerTest.o \
	actTestCaseTest.o \
	actTestRepeatTest.o \
	actTestResultTest.o \
	actunknowntest.o \
	allTests.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
@end of file error
@
text
@d63 1
@


1.1
log
@Initial Simple Makefile
@
text
@d1 30
a30 1
# Makefile for the Advanced CUnit Test(ACT) Tests
d33 3
a35 3
LDFLAGS =
INCLUDES = ..
LIBS = ../lib
d37 19
a55 3
TARGET = ../../../bin/actTests
OBJS = \
	AllTests.o \
d59 2
a60 2
	actTestCaller.o \
	actTestCase.o \
d62 8
a69 1
	actTestResult.o
d74 4
a77 1
	$(CC) -o $@@ $(OBJS) -L$(LIBS) -lactlib
a78 2
.c.o:
	$(CC) $(CFLAGS) -I$(INCLUDES) -c $<
d81 5
a85 1
	-$(RM) $(TARGET) $(OBJS)
a86 2
vpath %c ../src
vpath %h ../include ../../../include
d88 4
@

