
#Define the machine type
MACHINE = 

#Define Conmpiler 
CC = cc

#Define options for debugging
#DEBUG_FLAG = -g -DDBG -Wall
DEBUG_FLAG =
CFLAGS= -DLINUX $(DEBUG_FLAG) -std=c99
COPT  =  

# library name
DH_AMSRLIB = ../lib
ARCHIVE = $(DH_AMSRLIB)/libAMSR3.a

# include
INC = ../include
NFTINC = ./src
#NCINC = 

# source code
SRC = ./

# toolkit object files
SRCS   =  $(SRC)/nftool.o \
	       $(SRC)/amsr3_tk_common.o \

OBJ  =  $(SRCS:.c=.o)

all   : $(ARCHIVE)


# library generation by ar command
$(ARCHIVE) :  $(OBJ)
	ar cr $(ARCHIVE) $(OBJ)
	del $(SRC)/*.o

.c.o: 
		$(CC) -c $< $(COPT) $(CFLAGS) -o $@  -I$(INC) -I$(NCINC) -I$(NFTINC)

