Fix email address
[mplayer/greg.git] / osdep / Makefile
blob5685f774dd9b805ec99d787903985fc8bcbf1923
2 include ../config.mak
4 LIBNAME = libosdep.a
6 SRCS= shmem.c strsep.c strl.c vsscanf.c scandir.c gettimeofday.c fseeko.c \
7 swab.c
8 # timer.c
10 ifeq ($(TARGET_ARCH_X86),yes)
11 ifeq ($(TARGET_OS),Linux)
12 SRCS += lrmi.c vbelib.c
13 endif
14 endif
16 getch = getch2.c
17 timer = timer-lx.c
18 ifeq ($(MACOSX_FINDER_SUPPORT),yes)
19 SRCS += macosx_finder_args.c
20 endif
21 ifeq ($(TARGET_OS),Darwin)
22 timer = timer-darwin.c
23 endif
24 ifeq ($(TARGET_OS),CYGWIN)
25 timer = timer-win2.c
26 endif
27 ifeq ($(TARGET_OS),MINGW32)
28 timer = timer-win2.c
29 getch = getch2-win.c
30 SRCS += glob-win.c
31 endif
32 SRCS += $(timer)
33 SRCS += $(getch)
35 OBJS=$(SRCS:.c=.o)
37 CFLAGS = $(OPTFLAGS) -I. -I.. $(EXTRA_INC)
38 # -I/usr/X11R6/include/
40 .SUFFIXES: .c .o
42 # .PHONY: all clean
44 .c.o:
45 $(CC) -c $(CFLAGS) -o $@ $<
47 $(LIBNAME): $(OBJS)
48 $(AR) r $(LIBNAME) $(OBJS)
49 $(RANLIB) $(LIBNAME)
51 all: $(LIBNAME)
53 clean:
54 rm -f *.o *.a *~
56 distclean:
57 rm -f Makefile.bak *.o *.a *~ .depend
59 dep: depend
61 depend:
62 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
65 # include dependency files if they exist
67 ifneq ($(wildcard .depend),)
68 include .depend
69 endif