2013-11-13 06:40:43 +04:00
|
|
|
CFLAGS=-Wall -Wextra -pedantic -std=c99 -Werror -D_XOPEN_SOURCE=500 -fPIC -g
|
2013-11-13 05:35:34 +04:00
|
|
|
|
2013-11-13 06:40:43 +04:00
|
|
|
SONAME=nagioseasier.so
|
2013-11-14 10:57:18 +04:00
|
|
|
OBJECTS=src/nagioseasier.o src/helper.o src/commands.o src/commands/help.o src/commands/status.o src/commands/notifications.o src/commands/check.o src/commands/acknowledgment.o src/commands/problems.o src/commands/downtime.o
|
2013-11-13 06:40:43 +04:00
|
|
|
|
|
|
|
all: $(SONAME)
|
|
|
|
|
|
|
|
$(SONAME): $(OBJECTS)
|
|
|
|
$(CC) -shared $(CFLAGS) $(LDFLAGS) -o $@ $^
|
2013-11-13 05:35:34 +04:00
|
|
|
|
|
|
|
clean:
|
2013-11-13 06:40:43 +04:00
|
|
|
rm -f $(SONAME) $(OBJECTS)
|