2007-10-16 01:15:00 +00:00
|
|
|
NAME = asecmn
|
|
|
|
MODE = release
|
|
|
|
|
|
|
|
CC = cl
|
|
|
|
LD = link
|
|
|
|
AR = link
|
|
|
|
|
|
|
|
CFLAGS = /nologo /W3 -I..\..
|
|
|
|
|
|
|
|
!IF "$(MODE)" == "debug"
|
2007-12-09 07:57:27 +00:00
|
|
|
CFLAGS = $(CFLAGS) -D_DEBUG -DDEBUG /MTd /Zi
|
2007-10-16 01:15:00 +00:00
|
|
|
!ELSEIF "$(MODE)" == "release"
|
|
|
|
CFLAGS = $(CFLAGS) -DNDEBUG /MT /O2
|
|
|
|
!ELSE
|
|
|
|
CFLAGS = $(CFLAGS) /MT
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
OUT_DIR = ..\$(MODE)\lib
|
|
|
|
OUT_FILE_LIB = $(OUT_DIR)\$(NAME).lib
|
|
|
|
|
|
|
|
TMP_DIR = $(MODE)
|
|
|
|
|
|
|
|
OBJ_FILES_LIB = \
|
|
|
|
$(TMP_DIR)\mem.obj \
|
2008-03-19 00:34:10 +00:00
|
|
|
$(TMP_DIR)\str_bas.obj \
|
|
|
|
$(TMP_DIR)\str_cnv.obj \
|
|
|
|
$(TMP_DIR)\str_dyn.obj \
|
2008-02-13 01:39:56 +00:00
|
|
|
$(TMP_DIR)\map.obj \
|
2008-03-04 03:38:15 +00:00
|
|
|
$(TMP_DIR)\rex.obj \
|
2007-10-16 01:15:00 +00:00
|
|
|
$(TMP_DIR)\misc.obj
|
|
|
|
|
|
|
|
all: lib
|
|
|
|
|
|
|
|
lib: $(OUT_FILE_LIB)
|
|
|
|
|
|
|
|
$(OUT_FILE_LIB): $(TMP_DIR) $(OUT_DIR) $(OBJ_FILES_LIB)
|
|
|
|
$(AR) /lib @<<
|
|
|
|
/nologo /out:$(OUT_FILE_LIB) $(OBJ_FILES_LIB)
|
|
|
|
<<
|
|
|
|
|
|
|
|
$(TMP_DIR)\mem.obj: mem.c
|
|
|
|
$(CC) $(CFLAGS) /Fo$@ /c mem.c
|
|
|
|
|
2008-03-19 00:34:10 +00:00
|
|
|
$(TMP_DIR)\str_bas.obj: str_bas.c
|
|
|
|
$(CC) $(CFLAGS) /Fo$@ /c str_bas.c
|
|
|
|
|
|
|
|
$(TMP_DIR)\str_cnv.obj: str_cnv.c
|
|
|
|
$(CC) $(CFLAGS) /Fo$@ /c str_cnv.c
|
|
|
|
|
|
|
|
$(TMP_DIR)\str_dyn.obj: str_dyn.c
|
|
|
|
$(CC) $(CFLAGS) /Fo$@ /c str_dyn.c
|
2007-10-16 01:15:00 +00:00
|
|
|
|
2008-02-13 01:39:56 +00:00
|
|
|
$(TMP_DIR)\map.obj: map.c
|
|
|
|
$(CC) $(CFLAGS) /Fo$@ /c map.c
|
|
|
|
|
2008-03-04 03:38:15 +00:00
|
|
|
$(TMP_DIR)\rex.obj: rex.c
|
|
|
|
$(CC) $(CFLAGS) /Fo$@ /c rex.c
|
|
|
|
|
2007-10-16 01:15:00 +00:00
|
|
|
$(TMP_DIR)\misc.obj: misc.c
|
|
|
|
$(CC) $(CFLAGS) /Fo$@ /c misc.c
|
|
|
|
|
|
|
|
$(OUT_DIR):
|
|
|
|
-md $(OUT_DIR)
|
|
|
|
|
|
|
|
$(TMP_DIR):
|
|
|
|
-md $(TMP_DIR)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-del $(OUT_FILE_LIB)
|
|
|
|
-del $(OBJ_FILES_LIB)
|
|
|
|
|