Added Makefile.in

This commit is contained in:
Emil 2023-08-07 03:23:52 -06:00
parent 5e3d003c7f
commit 76ae5fd5e7
3 changed files with 86 additions and 1 deletions

1
.gitignore vendored
View File

@ -2,7 +2,6 @@
*/**.a */**.a
bin/ bin/
Makefile.in
ar-lib ar-lib
mdate-sh mdate-sh
py-compile py-compile

40
examples/Makefile.in Normal file
View File

@ -0,0 +1,40 @@
CC = @CC@
CXX = @CXX@
CFLAGS = -Wall @CFLAGS@
LIBS = -L../src/ -lircclient -lpthread @LIBS@
INCLUDES=-I../include
EXAMPLES=spammer censor irctest ircftp colors
all: $(EXAMPLES)
spammer: spammer.o
$(CC) -o spammer spammer.o $(LIBS)
colors: colors.o
$(CXX) -o colors colors.o $(LIBS)
irctest: irctest.o
$(CC) -o irctest irctest.o $(LIBS)
censor: censor.o
$(CXX) -o censor censor.o $(LIBS)
ircftp: ircftp.o
$(CXX) -o ircftp ircftp.o $(LIBS)
clean:
-rm -f $(EXAMPLES) *.o *.exe
distclean: clean
-rm -f Makefile *.log
.c.o:
@echo "Compiling $<"
@$(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<
.cpp.o:
@echo "Compiling $<"
@$(CXX) $(CFLAGS) $(INCLUDES) -c -o $@ $<

46
src/Makefile.in Normal file
View File

@ -0,0 +1,46 @@
# $Id: Makefile.in 137 2018-08-27 01:11:08Z gyunaev $
CC = @CC@
CFLAGS = -Wall -Wno-misleading-indentation -Wno-unused-function -Wno-nonnull -DIN_BUILDING_LIBIRC @CFLAGS@
AR=@AR@ cr
RANLIB=@RANLIB@
INCLUDES=-I../include
DESTDIR=
APIVERSION = 1
OBJS = libircclient.o
all: @TARGET@
static: libircclient.a
shared: libircclient.so
shared_mingw: libircclient.dll
install:
-mkdir -p $(DESTDIR)@prefix@/include
-mkdir -p $(DESTDIR)@libdir@
cp ../include/libircclient.h $(DESTDIR)@prefix@/include/libircclient.h
cp ../include/libirc_errors.h $(DESTDIR)@prefix@/include/libirc_errors.h
cp ../include/libirc_events.h $(DESTDIR)@prefix@/include/libirc_events.h
cp ../include/libirc_options.h $(DESTDIR)@prefix@/include/libirc_options.h
cp ../include/libirc_rfcnumeric.h $(DESTDIR)@prefix@/include/libirc_rfcnumeric.h
cp libircclient.so $(DESTDIR)@libdir@/libircclient.so.$(APIVERSION)
ln -fs libircclient.so.$(APIVERSION) $(DESTDIR)@libdir@/libircclient.so
libircclient.so: libircclient.o
$(CC) -shared -s -Wl,-soname,libircclient.so.$(APIVERSION) -o libircclient.so libircclient.o @LDFLAGS@ @LIBS@
libircclient.dll: libircclient.o
$(CC) -shared -s -o libircclient.dll -Wl,-out-implib,libircclient.lib libircclient.o libircclient.def -lkernel32 -lwsock32 @LIBS@
libircclient.a: libircclient.o
$(AR) libircclient.a libircclient.o
$(RANLIB) libircclient.a
clean:
rm -f libircclient.a libircclient.o
distclean: clean
-rm -f Makefile
.c.o:
$(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<