mirror of
https://github.com/colindean/optar.git
synced 2025-03-11 22:17:40 +13:00
Moves some vars in the Makefile
This commit is contained in:
parent
94badc9693
commit
a36cf13e52
13
Makefile
13
Makefile
@ -10,6 +10,15 @@ CFLAGS=-O3 -Wall -Wuninitialized \
|
|||||||
$(SPECIFIC_CFLAGS) \
|
$(SPECIFIC_CFLAGS) \
|
||||||
-DNODEBUG `libpng-config --I_opts`
|
-DNODEBUG `libpng-config --I_opts`
|
||||||
|
|
||||||
|
LIBPNG_PATH ?= /usr/local/include/libpng
|
||||||
|
INCLUDES = $(LIBPNG_PATH)
|
||||||
|
INCLUDES_CMD = $(foreach d, $(INCLUDES), -I$d)
|
||||||
|
|
||||||
|
VERSION=$(shell git describe)
|
||||||
|
ARCHIVE_PATH=optar-$(VERSION).tar.gz
|
||||||
|
BINARIES=optar unoptar
|
||||||
|
EXECUTABLES=$(BINARIES) pgm2ps
|
||||||
|
|
||||||
all: optar unoptar
|
all: optar unoptar
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@ -23,7 +32,7 @@ uninstall:
|
|||||||
rm /usr/local/bin/pgm2ps
|
rm /usr/local/bin/pgm2ps
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f optar unoptar golay golay_codes.c *.o
|
rm -f $(BINARIES) optar-*.tar.gz golay_codes.c *.o
|
||||||
|
|
||||||
common.o: common.c optar.h
|
common.o: common.c optar.h
|
||||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
|
||||||
@ -41,7 +50,7 @@ golay.o: golay.c parity.h
|
|||||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
unoptar.o: unoptar.c optar.h parity.h
|
unoptar.o: unoptar.c optar.h parity.h
|
||||||
$(CC) -c -I/usr/local/include/libpng $(CPPFLAGS) $(CFLAGS) -o $@ $<
|
$(CC) -c $(INCLUDES_CMD) $(CPPFLAGS) $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
optar: optar.o common.o golay_codes.o parity.o
|
optar: optar.o common.o golay_codes.o parity.o
|
||||||
$(CC) $(LDFLAGS) -o $@ $^
|
$(CC) $(LDFLAGS) -o $@ $^
|
||||||
|
Loading…
x
Reference in New Issue
Block a user