You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
869 B
33 lines
869 B
19 years ago
|
|
||
|
CC = gcc
|
||
|
CXX = g++
|
||
|
CFLAGS = -Wall -W -O2 -DNDEBUG -DMDEBUG0 -g -p
|
||
|
|
||
|
all : checklib aptvercmp freelist britneymodule.so # libajdpkg.a
|
||
|
|
||
|
clean :
|
||
|
rm -f *.so *.o *~ Makefile.dep gmon.out
|
||
|
rm -f freelist aptvercmp checklib libajdpkg.a
|
||
|
|
||
|
checklib : checklib.o dpkg.o dpkg-lib.o memory3.o freelist.o assert.o
|
||
|
$(CC) $(CFLAGS) -o checklib -lapt-pkg $^ # -lccmalloc -ldl
|
||
|
|
||
|
aptvercmp : dpkg-lib.cpp
|
||
|
$(CXX) $(CFLAGS) -DTESTBIN -o aptvercmp dpkg-lib.cpp -lapt-pkg
|
||
|
|
||
|
freelist : freelist.c assert.o
|
||
|
$(CC) $(CFLAGS) -DTESTBIN -o $@ $^
|
||
|
|
||
|
#libajdpkg.a : dpkg.o dpkg-lib.o memory3.o freelist.o assert.o
|
||
|
# ar rv $@ $^
|
||
|
# ranlib $@
|
||
|
|
||
|
britneymodule.so : britney-py.o dpkg.o dpkg-lib.o memory3.o freelist.o assert.o
|
||
|
$(CC) -shared -o britneymodule.so $^ -lapt-pkg
|
||
|
|
||
|
Makefile.dep :
|
||
|
@gcc -MM *.c *.cpp > Makefile.dep
|
||
|
@echo Makefile.dep : Makefile *.c *.h >> Makefile.dep
|
||
|
|
||
|
-include Makefile.dep
|