#######################################################################
# Copyright  2000-2005 by WIBU-SYSTEMS AG
#            Rueppurrer Strasse 52, D-76137 Karlsruhe, Germany/Europe 
#            Website: http:\\www.wibu.com, Email: info@wibu.com       
#            Phone: +49-721-93172-0, Fax: +49-721-93172-22           
#            All rights reserved                                     
#                                                                    
# Version .. 1.00 of 00Okt13                                         
# Project .. Unix-Source-Driver/Samples/UUEncode
# Author ... Markus Neumann (mn) , (ha)                                
# System ... LINUX 
# Tools .... GNU-make 3.80
#######################################################################

## Type of Programs:
AR = ar

CC = cc
#CC = gcc 

RM = rm -f

## Kind of Debugging:
CFLAG = -D_UNIX -w 
#CFLAG = -ggdb -Wall -DDIO -D_DEBUG -D_UNIX 

AFLAG = rcs

FILENAME = uucode

## The libraries libuucode_c.a (-luucode_cpp.a) will be generated.
## You can include this libraries with the C-Compiler option
## -luucode_c (-luucode_cpp) to your own project.
#LIB = -luucode_c
#LIB = -luucode_cpp

LIBNAME1 = libuucode_c.a
LIBNAME2 = libuucode_cpp.a

## ObjectFiles to build:
OBJ1 = $(FILENAME)_c.o
OBJ2 = $(FILENAME)_cpp.o

## Depending HeaderFiles:
HDRS = $(FILENAME).h

all:     ${OBJ1} ${OBJ2} lib


$(OBJ1):   $(HDRS)
	$(CC) -c $(CFLAG) -o $(OBJ1) $(FILENAME).c

$(OBJ2):   $(HDRS)
	$(CC) -c $(CFLAG) -o $(OBJ2) $(FILENAME).cpp

lib: $(OBJ1) $(OBJ2)
	$(AR) $(AFLAG) $(LIBNAME1) $(OBJ1)
	$(AR) $(AFLAG) $(LIBNAME2) $(OBJ2)

clean:
	$(RM) $(LIBNAME1)
	$(RM) $(LIBNAME2) 
	$(RM) *.o
	$(RM) *~



