ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Alexey Morsov <samurai@ricom.ru>
To: ALT Linux Community <community@altlinux.ru>
Subject: [Comm] Makefile
Date: Wed, 20 Oct 2004 17:43:19 +0400
Message-ID: <41766B77.405@ricom.ru> (raw)

Привет,

есть проблема с Makefile

Раньше была прогга написанная на C, теперь хочу е в cpp 
переделать... Пока просто правлю Makefile и уже огребаю глюки...
Makefile такого вида:

##############
#   Makefile #
##############

#CC=cc
CC=gcc -x c++
RM=/bin/rm -f

INCL=../utils
CFLAGS=-I /usr/include/mysql -I $(INCL) -L /usr/lib/mysql -lm 
-lmysqlclient
PROG=icqalerts
SRCS=main.cpp $(INCL)/common.c
OBJ=$(SRCS:%.cpp=%.o:%.c=%.o)

.cpp.o:
       $(CC) $(CFLAGS) $(CPPFLAGS) -c $<

#####################################################################
# ----- you shouldn't need to change anything below this line ----- #
#####################################################################
full: clean all
install:
    mv -f $(PROG) /usr/local/bin

all: $(PROG)

$(OBJS): $(INCL)

$(PROG): $(OBJS)
       $(RM) $(PROG)
       $(CC) -o $(PROG) $(SRCS) $(LDFLAGS) $(LDLIBS) $(CFLAGS)

clean:
       $(RM) $(PROG) $(OBJ) core

Так вот поблема в том, что эта сволочь удаляет файл common.c - 
хотя должен удалять common.o... Или я чего-то недогоняю?

-- 
Всего наилучшего,
Системный Администратор ЗАО "ИК "РИКОМ-ТРАСТ"
Алексей Морсов
ICQ: 196766290
Jabber: Samurai@jabber.pibhe.com
http://www.ricom.ru
http://www.fondmarket.ru


                 reply	other threads:[~2004-10-20 13:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41766B77.405@ricom.ru \
    --to=samurai@ricom.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git