Subject: | makefile parser |
Subject: | makefile |
.SUFFIXES : .c .o
INC = -I./
CFLAGS = -g -DSFTK_FAPI_LINUX -DSFTK_OS_LINUX $(INC)
OBJS = st_main.o \
BASE/st_internal.o \
BASE/st_list.o \
BASE/st_util.o \
CMD/st_command.o \
CMD/st_script.o \
FSWF/st_fswf.o \
FSWF/st_errtbl.o \
OSAL/st_osal.o \
TESTCASE/tc_access.o \
TESTCASE/tc_access_ex.o \
TESTCASE/tc_backup.o \
TESTCASE/tc_cleandir.o \
TESTCASE/tc_clean_nand_device.o \
TESTCASE/tc_close.o \
TESTCASE/tc_closeall.o \
TESTCASE/tc_closedir.o \
TESTCASE/tc_create.o \
TESTCASE/tc_create_ex.o \
TESTCASE/tc_external.o \
TESTCASE/tc_fastseek.o \
TESTCASE/tc_fast_unlink.o \
TESTCASE/tc_fat.o \
TESTCASE/tc_fdisk.o \
TESTCASE/tc_feof.o \
TESTCASE/tc_format.o \
TESTCASE/tc_fstat.o \
TESTCASE/tc_fsync.o \
TESTCASE/tc_ftell.o \
TESTCASE/tc_ftruncate.o \
TESTCASE/tc_get_partition_info.o \
TESTCASE/tc_get_volume_info.o \
TESTCASE/tc_hidden_area.o \
TESTCASE/tc_lock.o \
TESTCASE/tc_lseek.o \
TESTCASE/tc_lstat.o \
TESTCASE/tc_mkdir.o \
TESTCASE/tc_mkdir_ex.o \
TESTCASE/tc_mount.o \
TESTCASE/tc_open.o \
TESTCASE/tc_opendir.o \
TESTCASE/tc_opendir_ex.o \
TESTCASE/tc_open_ex.o \
TESTCASE/tc_read.o \
TESTCASE/tc_readdir.o \
TESTCASE/tc_readdir_stat.o \
TESTCASE/tc_readdir_unlink.o \
TESTCASE/tc_rename.o \
TESTCASE/tc_rename_ex.o \
TESTCASE/tc_restore.o \
TESTCASE/tc_rewinddir.o \
TESTCASE/tc_rmdir.o \
TESTCASE/tc_rmdir_ex.o \
TESTCASE/tc_stat.o \
TESTCASE/tc_statfs.o \
TESTCASE/tc_stat_ex.o \
TESTCASE/tc_symlink.o \
TESTCASE/tc_sync.o \
TESTCASE/tc_test.o \
TESTCASE/tc_truncate.o \
TESTCASE/tc_truncate_ex.o \
TESTCASE/tc_umount.o \
TESTCASE/tc_uni.o \
TESTCASE/tc_unlink.o \
TESTCASE/tc_unlink_ex.o \
TESTCASE/tc_write.o \
SRCS = $(OBJS:.o=.c)
TARGET = sftk
$(TARGET): $(OBJS)
$(CC) -o $@ $(OBJS)
dep :
gccmakedep $(INC) $(SRCS)
new :
touch $(SRCS) ; $(MAKE)
clean :
$(RM) $(OBJS) $(TARGET) core