create project structure
This commit is contained in:
23
libmysyslog/Makefile
Normal file
23
libmysyslog/Makefile
Normal file
@@ -0,0 +1,23 @@
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -g -fPIC
|
||||
LDFLAGS =
|
||||
|
||||
LIBRARY = libmysyslog.a
|
||||
OBJ = src/mysyslog.o
|
||||
|
||||
all: $(LIBRARY)
|
||||
|
||||
$(LIBRARY): $(OBJ)
|
||||
ar rcs $@ $^
|
||||
|
||||
clean:
|
||||
rm -f $(OBJ) $(LIBRARY)
|
||||
|
||||
deb:
|
||||
# Deb package building logic
|
||||
|
||||
install: $(LIBRARY)
|
||||
cp $(LIBRARY) /usr/local/lib
|
||||
ldconfig
|
||||
|
||||
.PHONY: all clean deb install
|
||||
12
libmysyslog/debian/control
Normal file
12
libmysyslog/debian/control
Normal file
@@ -0,0 +1,12 @@
|
||||
Source: libmysyslog
|
||||
Section: libs
|
||||
Priority: optional
|
||||
Maintainer: GandC Snow admin@gandc.ru
|
||||
Build-Depends: debhelper (>= 9)
|
||||
Standards-Version: 3.9.6
|
||||
Homepage: https://git.gandc.ru/mysyslog/libmysyslog
|
||||
|
||||
Package: libmysyslog
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||
Description: Core library for the MySyslog logging system
|
||||
4
libmysyslog/debian/rules
Normal file
4
libmysyslog/debian/rules
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
%:
|
||||
dh $@
|
||||
Reference in New Issue
Block a user