Cygwin support.
This commit is contained in:
parent
8dcbef8871
commit
155e3737bd
|
@ -22,7 +22,7 @@ ifeq ($(mode),release)
|
|||
endif
|
||||
|
||||
CFLAGS += -Wall $(INCLUDES)
|
||||
LDFLAGS += -Wall $(LIBS)
|
||||
LDFLAGS += -Wall
|
||||
|
||||
all:
|
||||
@make change_make_options &>/dev/null
|
||||
|
|
3
smake.sh
3
smake.sh
|
@ -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…
Reference in New Issue