Cygwin support.
This commit is contained in:
parent
8dcbef8871
commit
155e3737bd
|
@ -22,7 +22,7 @@ ifeq ($(mode),release)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CFLAGS += -Wall $(INCLUDES)
|
CFLAGS += -Wall $(INCLUDES)
|
||||||
LDFLAGS += -Wall $(LIBS)
|
LDFLAGS += -Wall
|
||||||
|
|
||||||
all:
|
all:
|
||||||
@make change_make_options &>/dev/null
|
@make change_make_options &>/dev/null
|
||||||
|
|
3
smake.sh
3
smake.sh
|
@ -103,6 +103,7 @@ echo >> Makefile
|
||||||
# ======= Test for target =======
|
# ======= Test for target =======
|
||||||
TARGET_SRC=
|
TARGET_SRC=
|
||||||
for tgt in $REP_TARGETS; do
|
for tgt in $REP_TARGETS; do
|
||||||
|
tgt=${tgt%.exe}
|
||||||
tgt_src=
|
tgt_src=
|
||||||
for ext in c cpp cxx cc; do
|
for ext in c cpp cxx cc; do
|
||||||
[ -f "$tgt.$ext" ] && tgt_src=$tgt.$ext && break
|
[ -f "$tgt.$ext" ] && tgt_src=$tgt.$ext && break
|
||||||
|
@ -262,7 +263,7 @@ for tgt_src in $TARGET_SRC; do
|
||||||
echo >> Makefile
|
echo >> Makefile
|
||||||
echo >> Makefile
|
echo >> Makefile
|
||||||
echo '$(TARGET'$i'): $(target_objs'$i')' >> 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
|
||||||
|
|
||||||
echo >> Makefile
|
echo >> Makefile
|
||||||
|
|
Loading…
Reference in New Issue