Mercurial > mplayer.hg
annotate linux/Makefile @ 7401:8b90281ed8aa
- fixed some bugs in RLE decoder
- some cleanup, home i didn't break it...
author | arpi |
---|---|
date | Sun, 15 Sep 2002 13:29:00 +0000 |
parents | b69ddd4d3bb9 |
children | 25fd5c47e31a |
rev | line source |
---|---|
2444 | 1 |
2 include ../config.mak | |
3 | |
4 LIBNAME = libosdep.a | |
5 | |
5393
cbf0fed4d211
Add a configure test for the strsep function (it's missing on solaris)
jkeil
parents:
5299
diff
changeset
|
6 SRCS=getch2.c timer-lx.c shmem.c strsep.c # timer.c |
2444 | 7 OBJS=$(SRCS:.c=.o) |
8 | |
9 ifeq ($(TARGET_ARCH_X86),yes) | |
10 ifeq ($(TARGET_OS),Linux) | |
11 SRCS += lrmi.c vbelib.c | |
12 endif | |
13 endif | |
14 | |
7073
b69ddd4d3bb9
removed -W -Wall -g and other gcc-specific warning/debug options
arpi
parents:
5393
diff
changeset
|
15 CFLAGS = $(OPTFLAGS) -I. -I.. |
2444 | 16 # -I/usr/X11R6/include/ |
17 | |
18 .SUFFIXES: .c .o | |
19 | |
20 # .PHONY: all clean | |
21 | |
22 .c.o: | |
23 $(CC) -c $(CFLAGS) -o $@ $< | |
24 | |
25 $(LIBNAME): $(OBJS) | |
26 $(AR) r $(LIBNAME) $(OBJS) | |
27 | |
28 all: $(LIBNAME) | |
29 | |
30 clean: | |
31 rm -f *.o *.a *~ | |
32 | |
33 distclean: | |
34 rm -f Makefile.bak *.o *.a *~ .depend | |
35 | |
36 dep: depend | |
37 | |
38 depend: | |
39 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
40 | |
41 # | |
42 # include dependency files if they exist | |
43 # | |
44 ifneq ($(wildcard .depend),) | |
45 include .depend | |
46 endif |