Cygwin support.

master
Kolan Sh 2012-05-16 12:50:01 +04:00
parent 8dcbef8871
commit 155e3737bd
2 changed files with 3 additions and 2 deletions

View File

@ -22,7 +22,7 @@ ifeq ($(mode),release)
endif
CFLAGS += -Wall $(INCLUDES)
LDFLAGS += -Wall $(LIBS)
LDFLAGS += -Wall
all:
@make change_make_options &>/dev/null

View File

@ -103,6 +103,7 @@ echo >> Makefile
# ======= Test for target =======
TARGET_SRC=
for tgt in $REP_TARGETS; do
tgt=${tgt%.exe}
tgt_src=
for ext in c cpp cxx cc; do
[ -f "$tgt.$ext" ] && tgt_src=$tgt.$ext && break
@ -262,7 +263,7 @@ for tgt_src in $TARGET_SRC; do
echo >> Makefile
echo >> Makefile
echo '$(TARGET'$i'): $(target_objs'$i')' >> Makefile
echo -e '\t$(CC) $(LDFLAGS) -o $@ $(target_objs'$i')' >> Makefile
echo -e '\t$(CC) $(LDFLAGS) -o $@ $(target_objs'$i') $(LIBS)' >> Makefile
echo >> Makefile
echo >> Makefile