*** empty log message ***

This commit is contained in:
hyung-hwan 2007-03-24 04:39:52 +00:00
parent 174b32b15a
commit ae1e635085
2 changed files with 67 additions and 25 deletions

View File

@ -1,7 +1,8 @@
OUT = asecmn #
# $Id: makefile.in,v 1.5 2007-03-24 04:39:52 bacon Exp $
#
C_SRCS = mem.c str.c misc.c NAME = asecmn
C_OBJS = $(C_SRCS:.c=.o)
CC = @CC@ CC = @CC@
AR = ar AR = ar
@ -10,18 +11,37 @@ RANLIB = @RANLIB@
CFLAGS = @CFLAGS@ -I@abs_top_builddir@/.. CFLAGS = @CFLAGS@ -I@abs_top_builddir@/..
LDFLAGS = @LDFLAGS@ LDFLAGS = @LDFLAGS@
LIBS = @LIBS@ LIBS = @LIBS@
BUILDMODE = @BUILDMODE@ MODE = @BUILDMODE@
all: lib OUT_DIR = ../$(MODE)
OUT_FILE = $(OUT_DIR)/lib$(NAME).a
lib: $(C_OBJS) TMP_DIR = $(MODE)
$(AR) cr lib$(OUT).a $(C_OBJS)
if [ "$(RANLIB)" = "ranlib" ]; then ranlib lib$(OUT).a; fi OBJ_FILES = \
$(TMP_DIR)/mem.o \
$(TMP_DIR)/str.o \
$(TMP_DIR)/misc.o
$(OUT_FILE): $(OBJ_FILES) $(OUT_DIR)
$(AR) cr $(OUT_FILE) $(OBJ_FILES)
if [ "$(RANLIB)" = "ranlib" ]; then ranlib $(OUT_FILE); fi
$(TMP_DIR)/mem.o: $(TMP_DIR)
$(CC) $(CFLAGS) -o $@ -c mem.c
$(TMP_DIR)/str.o: $(TMP_DIR)
$(CC) $(CFLAGS) -o $@ -c str.c
$(TMP_DIR)/misc.o: $(TMP_DIR)
$(CC) $(CFLAGS) -o $@ -c misc.c
$(OUT_DIR):
mkdir -p $(OUT_DIR)
$(TMP_DIR):
mkdir -p $(TMP_DIR)
clean: clean:
rm -rf $(OBJS) lib$(OUT).a *.o rm -rf $(OUT_FILE) $(OBJ_FILES)
.SUFFIXES: .c .o
.c.o:
$(CC) $(CFLAGS) -c $<

View File

@ -1,25 +1,47 @@
OUT = aseutl #
# $Id: makefile.in,v 1.4 2007-03-24 04:39:52 bacon Exp $
#
C_SRCS = main.c ctype.c stdio.c NAME = aseutl
C_OBJS = $(C_SRCS:.c=.o)
CC = @CC@ CC = @CC@
AR = ar AR = ar
MAKE = @MAKE@
RANLIB = @RANLIB@ RANLIB = @RANLIB@
CFLAGS = @CFLAGS@ -I@abs_top_builddir@/.. CFLAGS = @CFLAGS@ -I@abs_top_builddir@/..
LDFLAGS = @LDFLAGS@ LDFLAGS = @LDFLAGS@
LIBS = @LIBS@ LIBS = @LIBS@
MODE = @BUILDMODE@
all: lib OUT_DIR = ../$(MODE)
OUT_FILE = $(OUT_DIR)/lib$(NAME).a
lib: $(C_OBJS) TMP_DIR = $(MODE)
$(AR) cr lib$(OUT).a $(C_OBJS)
if [ "$(RANLIB)" = "ranlib" ]; then ranlib lib$(OUT).a; fi OBJ_FILES = \
$(TMP_DIR)/main.o \
$(TMP_DIR)/ctype.o \
$(TMP_DIR)/stdio.o
$(OUT_FILE): $(OBJ_FILES) $(OUT_DIR)
$(AR) cr $(OUT_FILE) $(OBJ_FILES)
if [ "$(RANLIB)" = "ranlib" ]; then ranlib $(OUT_FILE); fi
$(TMP_DIR)/main.o: $(TMP_DIR)
$(CC) $(CFLAGS) -o $@ -c main.c
$(TMP_DIR)/ctype.o: $(TMP_DIR)
$(CC) $(CFLAGS) -o $@ -c ctype.c
$(TMP_DIR)/stdio.o: $(TMP_DIR)
$(CC) $(CFLAGS) -o $@ -c stdio.c
$(OUT_DIR):
mkdir -p $(OUT_DIR)
$(TMP_DIR):
mkdir -p $(TMP_DIR)
clean: clean:
rm -rf $(OBJS) lib$(OUT).a *.o rm -rf $(OUT_FILE) $(OBJ_FILES)
.SUFFIXES: .c .o
.c.o:
$(CC) $(CFLAGS) -c $<