2001-10-24 09:34:41 +02:00
|
|
|
|
|
|
|
include ../config.mak
|
|
|
|
|
|
|
|
LIBNAME = libosdep.a
|
|
|
|
|
2006-03-25 11:38:37 +01:00
|
|
|
SRCS= shmem.c \
|
|
|
|
strsep.c \
|
|
|
|
strl.c \
|
|
|
|
vsscanf.c \
|
|
|
|
scandir.c \
|
|
|
|
gettimeofday.c \
|
|
|
|
fseeko.c \
|
|
|
|
swab.c \
|
|
|
|
setenv.c \
|
|
|
|
# timer.c \
|
2001-10-24 09:34:41 +02:00
|
|
|
|
2003-04-04 21:33:18 +02:00
|
|
|
getch = getch2.c
|
|
|
|
timer = timer-lx.c
|
2004-11-10 17:43:40 +01:00
|
|
|
ifeq ($(MACOSX_FINDER_SUPPORT),yes)
|
|
|
|
SRCS += macosx_finder_args.c
|
|
|
|
endif
|
2003-05-21 23:18:29 +02:00
|
|
|
ifeq ($(TARGET_OS),Darwin)
|
|
|
|
timer = timer-darwin.c
|
2003-02-19 18:22:02 +01:00
|
|
|
endif
|
2004-06-27 19:54:31 +02:00
|
|
|
ifeq ($(TARGET_OS),CYGWIN)
|
2003-04-25 12:00:18 +02:00
|
|
|
timer = timer-win2.c
|
2003-04-04 21:33:18 +02:00
|
|
|
endif
|
2004-06-27 19:54:31 +02:00
|
|
|
ifeq ($(TARGET_OS),MINGW32)
|
2003-04-25 12:00:18 +02:00
|
|
|
timer = timer-win2.c
|
2003-04-04 21:33:18 +02:00
|
|
|
getch = getch2-win.c
|
2003-04-25 12:00:18 +02:00
|
|
|
SRCS += glob-win.c
|
2003-04-04 21:33:18 +02:00
|
|
|
endif
|
|
|
|
SRCS += $(timer)
|
|
|
|
SRCS += $(getch)
|
2003-02-19 18:22:02 +01:00
|
|
|
|
|
|
|
OBJS=$(SRCS:.c=.o)
|
|
|
|
|
2006-08-17 19:19:56 +02:00
|
|
|
CFLAGS = -I. -I.. $(OPTFLAGS)
|
2001-10-24 09:34:41 +02:00
|
|
|
# -I/usr/X11R6/include/
|
|
|
|
|
|
|
|
.SUFFIXES: .c .o
|
|
|
|
|
|
|
|
# .PHONY: all clean
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c $(CFLAGS) -o $@ $<
|
|
|
|
|
|
|
|
$(LIBNAME): $(OBJS)
|
|
|
|
$(AR) r $(LIBNAME) $(OBJS)
|
2004-06-24 14:52:17 +02:00
|
|
|
$(RANLIB) $(LIBNAME)
|
2001-10-24 09:34:41 +02:00
|
|
|
|
|
|
|
all: $(LIBNAME)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.a *~
|
|
|
|
|
2006-01-27 01:06:42 +01:00
|
|
|
distclean: clean
|
|
|
|
rm -f .depend
|
2001-10-24 09:34:41 +02:00
|
|
|
|
|
|
|
dep: depend
|
|
|
|
|
|
|
|
depend:
|
|
|
|
$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
|
|
|
|
|
|
|
#
|
|
|
|
# include dependency files if they exist
|
|
|
|
#
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|