8 Commits
0.0.1 ... 0.0.3

Author SHA1 Message Date
3956bd04a6 Skips cleanup
I cannot for the life of me figure out why this is the default other
than to save Travis space when people have huge artifacts.
2018-04-08 13:18:44 -04:00
7b80324f76 Merge pull request #9 from colindean/cleanup
Moves some vars in the Makefile
2018-04-08 12:48:45 -04:00
e7b7d26bfa Adds travis deployment 2018-04-08 12:43:25 -04:00
a3266f26ea Builds an archive 2018-04-08 12:40:49 -04:00
4bbe161c8a Ignore some things
These were getting annoying
2018-04-08 12:33:45 -04:00
1bed801fe7 Removes redundant libpng include
It's gotten from the libpng-config command
2018-04-08 12:30:28 -04:00
a36cf13e52 Moves some vars in the Makefile 2018-04-08 12:27:39 -04:00
94badc9693 Merge pull request #8 from colindean/silence-warnings
Silences a few build warnings
2018-04-08 12:07:32 -04:00
3 changed files with 31 additions and 5 deletions

5
.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
*.o
golay
golay_codes.c
optar
unoptar

View File

@ -1,5 +1,16 @@
language: c language: c
compiler: compiler:
- clang - clang
- gcc - gcc
script: "make" script: make -j
before_deploy: make -j archive
deploy:
provider: releases
api_key:
secure: mz4/p8VB7qn6F3M8uPT2/mJmU/nEWRGgsxN+KM/Gg1isSVrRpWP0xYfPTOdU6o9f0IVBRIW7SjHuq1H9kqGhmWx+Aycs8gE905ORYidLRjbkPN/fiS2jL6CcRzolkprvK7btIRhxfFGB/y3L0MELh+kXo1A6oIm+2a+OwNpdi4c=
file: optar-*.tar.gz
file_glob: true
skip_cleanup: true
on:
repo: colindean/optar
tags: true

View File

@ -10,6 +10,11 @@ CFLAGS=-O3 -Wall -Wuninitialized \
$(SPECIFIC_CFLAGS) \ $(SPECIFIC_CFLAGS) \
-DNODEBUG `libpng-config --I_opts` -DNODEBUG `libpng-config --I_opts`
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 +28,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 +46,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 $(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 $@ $^
@ -54,3 +59,8 @@ golay: golay.o parity.o
unoptar: unoptar.o common.o golay_codes.o parity.o unoptar: unoptar.o common.o golay_codes.o parity.o
$(CC) -o $@ -L/usr/local/lib $^ -lm -lpng -lz $(CC) -o $@ -L/usr/local/lib $^ -lm -lpng -lz
archive: $(ARCHIVE_PATH)
$(ARCHIVE_PATH): $(EXECUTABLES)
tar czvf $@ $^