mirror of
https://github.com/wiire-a/pixiewps.git
synced 2025-07-27 15:54:29 +02:00
Updated Makefile
This commit is contained in:
parent
d95bf76f33
commit
a2f11824bc
9
Makefile
9
Makefile
@ -5,6 +5,8 @@ BINDIR = $(PREFIX)/bin
|
||||
MANDIR = $(PREFIX)/share/man
|
||||
|
||||
SRCDIR = src
|
||||
HDRS = $(SRCDIR)/config.h $(SRCDIR)/endianness.h $(SRCDIR)/version.h
|
||||
HDRS += $(SRCDIR)/pixiewps.h $(SRCDIR)/utils.h $(SRCDIR)/wps.h
|
||||
|
||||
LIBS = -lpthread
|
||||
ifeq ($(OPENSSL),1)
|
||||
@ -17,11 +19,11 @@ SOURCE = $(SRCDIR)/pixiewps.c
|
||||
|
||||
-include config.mak
|
||||
|
||||
.PHONY: all install install-bin install-man clean
|
||||
.PHONY: all install install-bin install-man strip clean
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET):
|
||||
$(TARGET): $(SOURCE) $(HDRS)
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -o $(TARGET) $(SOURCE) $(LIBS) $(LDFLAGS)
|
||||
|
||||
install: install-bin install-man
|
||||
@ -34,5 +36,8 @@ install-man: pixiewps.1
|
||||
install -d $(DESTDIR)$(MANDIR)/man1
|
||||
install -m 644 $< $(DESTDIR)$(MANDIR)/man1
|
||||
|
||||
strip: $(TARGET)
|
||||
strip $(TARGET)
|
||||
|
||||
clean:
|
||||
rm -f $(TARGET)
|
||||
|
Loading…
x
Reference in New Issue
Block a user