[SCM] templates for different package types branch, master, updated. dacf246a8d73ceb7ec033b08cf448a5e2b9677da
Miriam Ruiz
miriam at debian.org
Thu Oct 15 22:58:45 UTC 2009
The following commit has been merged in the master branch:
commit dacf246a8d73ceb7ec033b08cf448a5e2b9677da
Author: Miriam Ruiz <miriam at debian.org>
Date: Fri Oct 16 00:59:51 2009 +0200
Added C program without Makefile
diff --git a/model/c-exe/Makefile b/model/c-exe/Makefile
new file mode 100644
index 0000000..9cf34b4
--- /dev/null
+++ b/model/c-exe/Makefile
@@ -0,0 +1,28 @@
+PROGRAM=%PACKAGE%
+
+all: $(PROGRAM)
+
+SOURCES = $(shell find . -name "*.c")
+
+OBJS = $(SOURCES:.c=.o)
+
+EXTRA_CFLAGS=-I. `allegro-config --cflags`
+CFLAGS= -O2 -g -Wall
+
+LDFLAGS= -Wl,-z,defs -Wl,--as-needed -Wl,--no-undefined
+EXTRA_LDFLAGS=
+LIBS=`allegro-config --libs`
+
+$(PROGRAM): $(OBJS)
+ g++ $(LDFLAGS) $(EXTRA_LDFLAGS) $+ -o $@ $(LIBS)
+
+%.o: %.cpp
+ g++ -o $@ -c $+ $(CFLAGS) $(EXTRA_CFLAGS)
+
+%.o: %.c
+ gcc -o $@ -c $+ $(CFLAGS) $(EXTRA_CFLAGS)
+
+clean:
+ rm -f $(OBJS)
+ rm -f $(PROGRAM)
+ rm -f *.o *.a *~
diff --git a/model/autotools/control b/model/c-exe/control
similarity index 97%
copy from model/autotools/control
copy to model/c-exe/control
index ff775e9..773acf7 100644
--- a/model/autotools/control
+++ b/model/c-exe/control
@@ -7,6 +7,7 @@ Standards-Version: 3.8.3
Homepage: URL://HOMEPAGE
Package: %PACKAGE%
+Section: libs
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Suggests: %PACKAGE%-dbg (= ${binary:Version})
diff --git a/model/c-lib/rules b/model/c-exe/rules
similarity index 96%
copy from model/c-lib/rules
copy to model/c-exe/rules
index 9ae853c..f164f93 100755
--- a/model/c-lib/rules
+++ b/model/c-exe/rules
@@ -56,7 +56,7 @@ binary-arch: install
dh_installman
# dh_desktop
dh_link
- dh_strip --dbg-package=lib%PACKAGE%%MAJOR%-dbg
+ dh_strip --dbg-package=%PACKAGE%-dbg
dh_compress
dh_fixperms
# dh_perl
--
templates for different package types
More information about the Pkg-games-commits
mailing list