Skip to content

Commit

Permalink
Added CPPFLAGS and LDFLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpevzner committed Feb 13, 2020
1 parent a2b22da commit 8b809ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
# DESTDIR Destination directory for make install
# PREFIX Non-standard: appended to DESTDIR
# CC gcc C compiler
# CPPFLAGS C preprocessor flags
# CFLAGS -O2 -g -W -Wall -Werror C compiler flags
# LDFLAGS Linker flags
# COMPRESS gzip Program to compress man page, or ""
# MANDIR /usr/share/man/ Where to install man page

Expand Down Expand Up @@ -77,7 +79,7 @@ all: $(BACKEND) test

$(BACKEND): Makefile $(SRC) airscan.h airscan.sym
-ctags -R .
$(CC) -o $(BACKEND) -shared $(SRC) $(airscan_CFLAGS)
$(CC) -o $(BACKEND) -shared $(CPPFLAGS) $(SRC) $(airscan_CFLAGS) $(LDFLAGS)

install: all
mkdir -p $(PREFIX)$(CONFDIR)
Expand Down

0 comments on commit 8b809ea

Please sign in to comment.