qse/ase/utl/msw-bcc.mak

64 lines
979 B
Makefile
Raw Normal View History

NAME = aseutl
!ifndef MODE
MODE = release
!endif
CC = bcc32
LD = ilink32
AR = tlib
2008-02-09 03:04:38 +00:00
CFLAGS = -WM -WU -RT- -w -q -I..\..
!IF "$(MODE)" == "debug"
CFLAGS = $(CFLAGS) -D_DEBUG -DDEBUG
!ELSEIF "$(MODE)" == "release"
CFLAGS = $(CFLAGS) -DNDEBUG -O2
!ELSE
CFLAGS = $(CFLAGS)
!ENDIF
OUT_DIR = ..\$(MODE)\lib
OUT_FILE_LIB = $(OUT_DIR)\$(NAME).lib
TMP_DIR = $(MODE)
OBJ_FILES_LIB = \
$(TMP_DIR)\main.obj \
$(TMP_DIR)\ctype.obj \
2008-02-03 05:27:18 +00:00
$(TMP_DIR)\stdio.obj \
$(TMP_DIR)\http.obj
all: lib
lib: $(TMP_DIR) $(OUT_DIR) $(OUT_FILE_LIB)
$(OUT_FILE_LIB): $(OBJ_FILES_LIB)
$(AR) $(OUT_FILE_LIB) @&&!
+-$(**: = &^
+-)
!
$(TMP_DIR)\main.obj: main.c
$(CC) $(CFLAGS) -o$@ -c main.c
$(TMP_DIR)\ctype.obj: ctype.c
$(CC) $(CFLAGS) -o$@ -c ctype.c
$(TMP_DIR)\stdio.obj: stdio.c
$(CC) $(CFLAGS) -o$@ -c stdio.c
2008-02-03 05:27:18 +00:00
$(TMP_DIR)\http.obj: http.c
$(CC) $(CFLAGS) -o$@ -c http.c
$(OUT_DIR):
-md $(OUT_DIR)
$(TMP_DIR):
-md $(TMP_DIR)
clean:
-del $(OUT_FILE_LIB)
-del $(OBJ_FILES_LIB)