annotate osdep/Makefile @ 9830:e2134d2f18fb

enable timer-win and getch2-win for mingw32
author faust3
date Fri, 04 Apr 2003 19:33:18 +0000
parents 350b660ef93c
children 14c92818ab75
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2444
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
1
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
2 include ../config.mak
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
3
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
4 LIBNAME = libosdep.a
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
5
9830
e2134d2f18fb enable timer-win and getch2-win for mingw32
faust3
parents: 9465
diff changeset
6 SRCS= shmem.c strsep.c vsscanf.c scandir.c gettimeofday.c # timer.c
2444
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
7
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
8 ifeq ($(TARGET_ARCH_X86),yes)
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
9 ifeq ($(TARGET_OS),Linux)
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
10 SRCS += lrmi.c vbelib.c
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
11 endif
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
12 endif
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
13
9830
e2134d2f18fb enable timer-win and getch2-win for mingw32
faust3
parents: 9465
diff changeset
14 getch = getch2.c
e2134d2f18fb enable timer-win and getch2-win for mingw32
faust3
parents: 9465
diff changeset
15 timer = timer-lx.c
9465
350b660ef93c precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents: 9380
diff changeset
16 ifeq ($(MACOSX),yes)
9830
e2134d2f18fb enable timer-win and getch2-win for mingw32
faust3
parents: 9465
diff changeset
17 timer = timer-macosx.c
e2134d2f18fb enable timer-win and getch2-win for mingw32
faust3
parents: 9465
diff changeset
18 endif
e2134d2f18fb enable timer-win and getch2-win for mingw32
faust3
parents: 9465
diff changeset
19 ifeq ($(TARGET_CYGWIN),yes)
e2134d2f18fb enable timer-win and getch2-win for mingw32
faust3
parents: 9465
diff changeset
20 timer = timer-win.c
9465
350b660ef93c precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents: 9380
diff changeset
21 endif
9830
e2134d2f18fb enable timer-win and getch2-win for mingw32
faust3
parents: 9465
diff changeset
22 ifeq ($(TARGET_MINGW32),yes)
e2134d2f18fb enable timer-win and getch2-win for mingw32
faust3
parents: 9465
diff changeset
23 timer = timer-win.c
e2134d2f18fb enable timer-win and getch2-win for mingw32
faust3
parents: 9465
diff changeset
24 getch = getch2-win.c
e2134d2f18fb enable timer-win and getch2-win for mingw32
faust3
parents: 9465
diff changeset
25 endif
e2134d2f18fb enable timer-win and getch2-win for mingw32
faust3
parents: 9465
diff changeset
26 SRCS += $(timer)
e2134d2f18fb enable timer-win and getch2-win for mingw32
faust3
parents: 9465
diff changeset
27 SRCS += $(getch)
9465
350b660ef93c precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents: 9380
diff changeset
28
350b660ef93c precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents: 9380
diff changeset
29 OBJS=$(SRCS:.c=.o)
350b660ef93c precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents: 9380
diff changeset
30
9329
113095b8258b required for i18n+-lintl (found by Nexus)
arpi
parents: 8290
diff changeset
31 CFLAGS = $(OPTFLAGS) -I. -I.. $(EXTRA_INC)
2444
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
32 # -I/usr/X11R6/include/
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
33
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
34 .SUFFIXES: .c .o
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
35
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
36 # .PHONY: all clean
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
37
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
38 .c.o:
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
39 $(CC) -c $(CFLAGS) -o $@ $<
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
40
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
41 $(LIBNAME): $(OBJS)
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
42 $(AR) r $(LIBNAME) $(OBJS)
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
43
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
44 all: $(LIBNAME)
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
45
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
46 clean:
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
47 rm -f *.o *.a *~
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
48
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
49 distclean:
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
50 rm -f Makefile.bak *.o *.a *~ .depend
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
51
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
52 dep: depend
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
53
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
54 depend:
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
55 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
56
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
57 #
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
58 # include dependency files if they exist
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
59 #
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
60 ifneq ($(wildcard .depend),)
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
61 include .depend
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
62 endif