Skip to content

Commit

Permalink
1.5.13: strip Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
zvezdochiot committed Jul 16, 2022
1 parent feed14c commit a32d76a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 9 deletions.
6 changes: 6 additions & 0 deletions README.ja.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
![GitHub release (latest by date)](https://img.shields.io/github/v/release/hcmiya/opuscomment)
![GitHub Release Date](https://img.shields.io/github/release-date/hcmiya/opuscomment)
![GitHub repo size](https://img.shields.io/github/repo-size/hcmiya/opuscomment)
![GitHub all releases](https://img.shields.io/github/downloads/hcmiya/opuscomment/total)
![GitHub](https://img.shields.io/github/license/hcmiya/opuscomment)

# opuscomment

## 概要
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
![GitHub release (latest by date)](https://img.shields.io/github/v/release/hcmiya/opuscomment)
![GitHub Release Date](https://img.shields.io/github/release-date/hcmiya/opuscomment)
![GitHub repo size](https://img.shields.io/github/repo-size/hcmiya/opuscomment)
![GitHub all releases](https://img.shields.io/github/downloads/hcmiya/opuscomment/total)
![GitHub](https://img.shields.io/github/license/hcmiya/opuscomment)

# opuscomment

The formal README is written in [Japanese](./README.ja.md).
Expand Down
17 changes: 8 additions & 9 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,31 @@
# NLSに対応していない、あるいは必要がない場合は、CFLAGSに-UNLSを追加することで無効に出来ます。
# `DEFAULT_NLS_PATH`を文字列でdefineをすると、NLSPATHが無い時に最初にcatopen(3)をする場所を指定することができます。

CC=c99
CFLAGS=-D_POSIX_C_SOURCE=200809L -DNLS
LDFLAGS=-logg -lm -lpthread
SRCS=put-tags.c parse-tags.c read.c read-flac.c ocutil.c retrieve-tags.c select-codec.c
CONFSRCS=endianness.c error.c main.c
OBJS=$(SRCS:.c=.o) $(CONFSRCS:.c=.o)
HEADERS=global.h ocutil.h limit.h error.h iconv-impl.h
ERRORDEFS=errordef/opus.tab errordef/main.tab
DEFAULT_MACROS=-D_POSIX_C_SOURCE=200809L -DNLS
#DEFAULT_MACROS=-D_XOPEN_SOURCE=600 -DNLS
LIBS=-logg -lm -lpthread
CC=c99
OBJS=$(SRCS:.c=.o) $(CONFSRCS:.c=.o)

all: opuscomment ;
all: opuscomment

opuscomment: $(OBJS)
$(CC) $(CFLAGS) $(DEFAULT_MACROS) $(LDFLAGS) $(OBJS) $(LIBS) -o opuscomment
$(CC) $(CFLAGS) $^ $(LDFLAGS) -o $@

.SUFFIXES:
.SUFFIXES: .c .o

.c.o:
$(CC) $(DEFAULT_MACROS) $(CFLAGS) -c $<
$(CC) $(CFLAGS) -c $<

$(SRCS): $(HEADERS)
@touch $@

endianness.c: endianness-check.sh
./endianness-check.sh >endianness.c
./$< > $@

error.c: $(ERRORDEFS) $(HEADERS)
@touch $@
Expand Down

0 comments on commit a32d76a

Please sign in to comment.