aboutsummaryrefslogblamecommitdiffstats
path: root/libglouglou/Makefile
blob: aae8f0b9c8e37510a8b6b3c547230d3a1b946dac (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                 
 

                            
                    

                   
                       

                                                                   




                          
                                               


                                          
                          
                              

                                                
 

                                  
CFLAGS += -Wall -O2 -fPIC -shared

PREFIX=/usr/local
INCLUDEDIR=$(PREFIX)/include
LIBDIR=$(PREFIX)/lib
LIBNAME=libglouglou

TARGET  = ${LIBNAME}.so
SOURCES = libglouglou.c sendbuf.c utils.c libggnet.c libggnet_dns.c
HEADERS = libglouglou.h libggnet.h libggnet_dns.h
OBJECTS = $(SOURCES:.c=.o)

all: $(TARGET)

$(TARGET): $(OBJECTS)
	$(CC) $(CFLAGS) -o $(TARGET) $(OBJECTS)

install:
	@echo "installation of $(LIBNAME)"
	mkdir -p $(LIBDIR)
	mkdir -p $(INCLUDEDIR)
	install -m 0644 $(TARGET) $(LIBDIR)
	install -m 0644 $(HEADERS) $(INCLUDEDIR)

clean:
	rm -f $(TARGET) $(OBJECTS)