mirror of
https://github.com/wiire-a/pixiewps.git
synced 2025-07-27 15:54:29 +02:00
Change path and add missing flags
Fix paths and add missing flags: LDFLAGS, CFLAGS and CPPFLAGS. The authors of this patch are: Sophie Brun <sophie@freexian.com>, Samuel Henrique <samueloph@gmail.com> Gianfranco Costamagna <locutusofborg@debian.org>
This commit is contained in:
parent
1448fff39f
commit
520f46d154
11
src/Makefile
11
src/Makefile
@ -1,14 +1,15 @@
|
|||||||
CCFLAGS = -std=c99 -O3
|
CCFLAGS += -std=c99 -O3
|
||||||
|
|
||||||
TARGET = pixiewps
|
TARGET = pixiewps
|
||||||
CRYPTO = crypto/sha256.c crypto/md.c crypto/md_wrap.c
|
CRYPTO = crypto/sha256.c crypto/md.c crypto/md_wrap.c
|
||||||
SOURCE = $(TARGET).c random_r.c $(CRYPTO)
|
SOURCE = $(TARGET).c random_r.c $(CRYPTO)
|
||||||
|
PREFIX ?= $(DESTDIR)/usr
|
||||||
PREFIX = $(DESTDIR)/usr
|
PREFIX = $(DESTDIR)/usr
|
||||||
BINDIR = $(PREFIX)/bin
|
BINDIR = $(PREFIX)/bin
|
||||||
LOCDIR = $(PREFIX)/local/bin
|
LOCDIR ?= $(PREFIX)/local
|
||||||
|
|
||||||
all:
|
all:
|
||||||
$(CC) $(CCFLAGS) -o $(TARGET) $(SOURCE)
|
$(CC) $(CFLAGS) $(CCFLAGS) $(CPPFLAGS) -o $(TARGET) $(SOURCE) $(LDFLAGS)
|
||||||
|
|
||||||
debug:
|
debug:
|
||||||
$(CC) $(CCFLAGS) -DDEBUG -o $(TARGET) $(SOURCE)
|
$(CC) $(CCFLAGS) -DDEBUG -o $(TARGET) $(SOURCE)
|
||||||
@ -16,8 +17,8 @@ debug:
|
|||||||
install:
|
install:
|
||||||
rm -f $(BINDIR)/$(TARGET)
|
rm -f $(BINDIR)/$(TARGET)
|
||||||
rm -f $(LOCDIR)/$(TARGET)
|
rm -f $(LOCDIR)/$(TARGET)
|
||||||
install -d $(LOCDIR)
|
install -d $(DESTDIR)$(LOCDIR)$(BINDIR)
|
||||||
install -m 755 $(TARGET) $(LOCDIR)
|
install -m 755 $(TARGET) $(DESTDIR)$(LOCDIR)$(BINDIR)
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm $(LOCDIR)/$(TARGET)
|
rm $(LOCDIR)/$(TARGET)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user