File: Makefile.rules

package info (click to toggle)
dstooltk 2.0-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,520 kB
  • ctags: 3,169
  • sloc: ansic: 27,185; tcl: 4,770; makefile: 588; sh: 81; csh: 7
file content (39 lines) | stat: -rw-r--r-- 709 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#
# Makefile.rules
#

all::
	@$(MAKE_SUBDIRS:target=all)

clean::
	$(RM) *.a *.o *~ core $(CLEAN)
	@$(MAKE_SUBDIRS:target=clean)

clean_all::
	$(RM) *.a *.o *~ core $(CLEAN) $(CLEAN_ALL)
	@$(MAKE_SUBDIRS:target=clean_all)

depend::
	@$(MAKE_SUBDIRS:target=depend)

.c.o:
	$(RM) $@
	$(CC) -c $(ALL_FLAGS) $(ALL_INCLUDES) $*.c

$(LIB_NAME) : $(OBJS)
	$(AR_R) $@ $?
	$(RANLIB) $@

install: $(LIB_NAME)
	@$(MKDIRHIER) $(LIBDIR)
	$(INSTALL) $(LIB_NAME) $(LIBDIR)
	$(RANLIB) $(LIBDIR)/$(LIB_NAME)

listfiles::
	@srcs="Makefile $(SRCS) $(OTHER_SRCS) $(INCLUDE_FILES) $(OTHER_FILES)" ; \
	for i in $$srcs ; do \
	  $(ECHO) "$(CURRENT_DIR)/$$i" >> $(TOP)/fileslist ; \
	done
	@$(MAKE_SUBDIRS:target=listfiles)

FORCE: