build-sys: take autotools in use again
This will revert change at Oct 2002 when autotools support was removed. Unlike before the package developers are expected to use ./autogen.sh to generate ./configure script, and run make after that. The build system is also able to create, with make dist, a tar ball release which compiles correctly, and has files which seemed to be important to have. The patch removes few unnecessary files, but no everything. Files procps.lsm and procps.spec in git repository are useless as is, but I left them lying around for someone who can make more justified call about removal of them. Last, but not least package version number is set 3.3.0 to distinct this procps from the sourceforge's upstream procps. Please notice that libproc relese is kept as 3.2.8. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
28
ps/Makefile.am
Normal file
28
ps/Makefile.am
Normal file
@@ -0,0 +1,28 @@
|
||||
AM_CPPFLAGS = -include $(top_builddir)/config.h
|
||||
|
||||
AM_CFLAGS = -I../proc
|
||||
AM_LDFLAGS = ../proc/libproc.la
|
||||
|
||||
dist_man_MANS = ps.1
|
||||
|
||||
# Use `ginstall' in the definition of PROGRAMS and in dependencies to avoid
|
||||
# confusion with the `install' target. The install rule transforms `ginstall'
|
||||
# to install before applying any user-specified name transformations.
|
||||
transform = s/pscommand/ps/; $(program_transform_name)
|
||||
bin_PROGRAMS = pscommand
|
||||
pscommand_SOURCES = \
|
||||
common.h \
|
||||
display.c \
|
||||
global.c \
|
||||
help.c \
|
||||
output.c \
|
||||
parser.c \
|
||||
select.c \
|
||||
sortformat.c \
|
||||
stacktrace.c
|
||||
|
||||
EXTRA_DIST = \
|
||||
HACKING \
|
||||
it \
|
||||
regression \
|
||||
TRANSLATION
|
||||
40
ps/module.mk
40
ps/module.mk
@@ -1,40 +0,0 @@
|
||||
# This file gets included into the main Makefile, in the top directory.
|
||||
|
||||
INSTALL += $(bin)ps $(man1)ps.1
|
||||
|
||||
# files to remove
|
||||
CLEAN += ps/ps ps/debug
|
||||
|
||||
# a directory for cleaning
|
||||
DIRS += ps/
|
||||
|
||||
# a file to create
|
||||
ALL += ps/ps
|
||||
|
||||
PS_C := display global help output parser select sortformat
|
||||
PSNAMES := $(addprefix ps/,$(PS_C))
|
||||
PSOBJ := $(addsuffix .o,$(PSNAMES))
|
||||
PSSRC := $(addsuffix .c,$(PSNAMES))
|
||||
|
||||
PS_X := COPYING HACKING TRANSLATION common.h module.mk it p ps.1 regression
|
||||
TARFILES += $(PSSRC) $(addprefix ps/,$(PS_X))
|
||||
|
||||
ps/ps: $(PSOBJ) $(LIBPROC)
|
||||
$(CC) $(ALL_CFLAGS) $(ALL_LDFLAGS) -o $@ $^ $(ldl)
|
||||
|
||||
# This just adds the stacktrace code
|
||||
ps/debug: $(PSOBJ) stacktrace.o $(LIBPROC)
|
||||
$(CC) $(ALL_CFLAGS) $(ALL_LDFLAGS) -o $@ $^ -lefence $(ldl)
|
||||
|
||||
$(PSOBJ): %.o: %.c ps/common.h $(LIBPROC)
|
||||
$(CC) -c $(ALL_CPPFLAGS) $(ALL_CFLAGS) $< -o $@
|
||||
|
||||
ps/stacktrace.o: ps/stacktrace.c
|
||||
|
||||
|
||||
$(bin)ps: ps/ps
|
||||
$(install) --mode a=rx $< $@
|
||||
|
||||
$(man1)ps.1 : ps/ps.1
|
||||
$(install) --mode a=r $< $@
|
||||
-rm -f $(DESTDIR)/var/catman/cat1/ps.1.gz $(DESTDIR)/var/man/cat1/ps.1.gz
|
||||
Reference in New Issue
Block a user