/Makefile.in (f4840e81a25ebbe341ed222185d776ac0b79449e) (1306 bytes) (mode 100644) (type blob)
export CC := gcc
export INCS += -I.
export LIBS += -lpthread
export OBJS += Conn.o
export CFLAGS += -Wall -Wextra -pipe -O3 -g -ggdb
export CFLAGS += -Wcast-align -Wformat=2 -Wformat-security -fno-common
export CFLAGS += -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
export CFLAGS += -Wstrict-overflow -Wtrampolines -flto
export CFLAGS += -fstack-protector-all
export CFLAGS += -D _FORTIFY_SOURCES=2
export CFLAGS += -fstack-reuse=all -fbounds-check
export CFLAGS += -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,-O1
# TODO export CFLAGS += -Wconversion
.PHONY: all
all: libConn.so.@VER@
Conn.o: Conn.c Conn.h Conn_config.h
$(CC) $(CFLAGS) -fpic $(INCS) -c Conn.c
%.o: %.c
gcc $(CFLAGS) $(INCS) $< -c
libConn.so.@VER@: $(OBJS)
$(CC) $(CFLAGS) -fpic $(INCS) -shared -Wl,-soname,libConn.so.1 \
-o $@ $(OBJS) -lc $(LIBS)
ln -sf $@ libConn.so.1
ln -sf $@ libConn1.so
libConn.a: $(OBJS)
ar rcs libConn.a $(OBJS)
.PHONY: tests
tests:
$(MAKE) -C tests
.PHONY: examples
examples:
$(MAKE) -C examples build
.PHONY: clean
clean:
@-rm -f *.a *.o *.so* $(PRJ)-*.rpm $(PRJ)-*-*-*.tgz $(PRJ)-*.tar.gz
@$(MAKE) -C examples clean
@$(MAKE) -C tests clean
install: all
@mkdir -p $(I_USR_LIB)
@cp -vd libConn.so* $(I_USR_LIB)
@mkdir -p $(I_USR_INC)
@cp -vd *.h $(I_USR_INC)
Mode |
Type |
Size |
Ref |
File |
100644 |
blob |
112 |
3a048942198455b0035de36927f4655a76284dc6 |
.exclude |
100644 |
blob |
94 |
2e97920b91646e1a8c2438ca375e2aaae22793fb |
.gitignore |
100644 |
blob |
169 |
c003c095218f64ad33aeb89987f61eb575557d96 |
.mailmap |
100644 |
blob |
1945 |
fecf0e7a7e8580485101a179685aedc7e00affbb |
Changelog.pre109 |
100644 |
blob |
85381 |
f1e72cb5282868b14553381899e84250ab0d80ce |
Conn.c |
100644 |
blob |
5314 |
5ea7425b4a2b6cd68d6bcabfe25c23a4ceff6b6c |
Conn.h |
100644 |
blob |
860 |
30db00511f3bdee57aea7c5cfbf628a82b89d5db |
Conn.spec.in |
100644 |
blob |
747 |
662c3f3fe8d0a3d23770631d7a0a260719d81e62 |
Conn_config.h.in |
100644 |
blob |
30 |
d987fa5df957830331139935d517009e2911b0cf |
INSTALL |
100644 |
blob |
25275 |
92b8903ff3fea7f49ef5c041b67a087bca21c5ec |
LICENSE |
100644 |
blob |
1306 |
f4840e81a25ebbe341ed222185d776ac0b79449e |
Makefile.in |
100644 |
blob |
192 |
5b11bdfb23857d8588845465aef993b320596b44 |
README |
100644 |
blob |
17095 |
98bc46993d3191b70bde26e2baec4a96328d131a |
TODO |
100755 |
blob |
30 |
92c4bc48245c00408cd7e1fd89bc1a03058f4ce4 |
configure |
040000 |
tree |
- |
d4c9c4a69c5cfa2a84316967185f1661b6817779 |
docs |
100755 |
blob |
13704 |
87c4881d7f32f8179d29d86ee17ddbe0f6254c57 |
duilder |
100644 |
blob |
381 |
47868bb84597a47ce487a62d22819d57666c861c |
duilder.conf |
040000 |
tree |
- |
2ae1ba40f0684de17690de8caccfeb24a964ad1d |
examples |
040000 |
tree |
- |
cc405c053275900a4395d05041eb8e6decae0647 |
tests |
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"
Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/catalinux/Conn
Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/catalinux/Conn
Clone this repository using git:
git clone git://git.rocketgit.com/user/catalinux/Conn
You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a
merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main