Cygwin support.

master
Kolan Sh 11 years ago
parent 8dcbef8871
commit 155e3737bd
  1. 2
      build.smk
  2. 3
      smake.sh

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

@ -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

Loading…
Cancel
Save