-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile.old
50 lines (41 loc) · 919 Bytes
/
Makefile.old
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
ifeq ($(PREFIX),)
PREFIX := /usr/local
endif
OBJECTS := avs2yuv.o
BIN := avs2yuv
CCFLAGS := -I. -std=gnu99 -Wall -O3 -ffast-math -fno-math-errno -fomit-frame-pointer $(CFLAGS)
UNAME_S := $(shell uname -s)
ifneq ($(UNAME_S),Darwin)
LDFLAGS := -Wl,--no-as-needed
endif
UNAME_M := $(shell uname -m)
ifeq ($(UNAME_M),i686)
CCFLAGS += -msse2 -mfpmath=sse
endif
ifeq ($(UNAME_M),x86_64)
CCFLAGS += -msse2 -mfpmath=sse
endif
ifeq (${OS},Windows_NT)
CCFLAGS += -I"${AVISYNTH_SDK_PATH}\include"
else
ifeq ($(UNAME_S),Haiku)
LDFLAGS += -lroot
else
ifeq (${OS},MINGW)
LDFLAGS += -pthread
else
LDFLAGS += -ldl -pthread
endif
endif
CCFLAGS += $(shell pkg-config --cflags avisynth)
endif
all: $(BIN)
%.o : %.c
$(CC) $(CCFLAGS) -c $< -o $@
$(BIN) : $(OBJECTS)
$(CC) $(LDFLAGS) $(OBJECTS) -s -o $(BIN)
install: avs2yuv
install -m 755 avs2yuv $(PREFIX)/bin/
clean :
rm -f $(OBJECTS) $(BIN)
avs2yuv.o: avs2yuv.c