summaryrefslogtreecommitdiff
path: root/libc/conio/Makefile
diff options
context:
space:
mode:
authorRobert de Bath <rdebath@poboxes.com>2002-01-12 20:42:42 +0100
committerLubomir Rintel <lkundrak@v3.sk>2013-10-23 23:48:46 +0200
commitd91fa39567f5659e3931cf61517d62fddcd87570 (patch)
tree20583acd4f345a4f5c9a7772870ef972cb8a3b14 /libc/conio/Makefile
parentbff547eabb6678ec8e71ffbcfbf9a4f05c94d949 (diff)
downloaddev86-d91fa39567f5659e3931cf61517d62fddcd87570.tar.gz
Import Dev86src-0.16.1.tar.gzv0.16.1
Diffstat (limited to 'libc/conio/Makefile')
-rw-r--r--libc/conio/Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/libc/conio/Makefile b/libc/conio/Makefile
new file mode 100644
index 0000000..bd86b2c
--- /dev/null
+++ b/libc/conio/Makefile
@@ -0,0 +1,36 @@
+# Copyright (C) 1996 Robert de Bath <robert@mayday.compulink.co.uk>
+# This file is part of the Linux-8086 C library and is distributed
+# under the GNU Library General Public License.
+
+ASRC=conio.c
+AOBJ=getch.o getche.o kbhit.o putch.o cputs.o
+
+OBJ=$(AOBJ) cprintf.o
+
+CFLAGS=$(ARCH) $(CCFLAGS) $(DEFS)
+
+ifeq ($(LIB_CPU)-$(LIB_OS),i86-BIOS)
+all: $(LIBC)($(OBJ))
+ @$(RM) $(OBJ)
+else
+ifeq ($(LIB_CPU)-$(LIB_OS),i86-DOS)
+all: $(LIBC)($(OBJ))
+ @$(RM) $(OBJ)
+else
+all:
+ @:
+endif
+endif
+
+$(LIBC)($(AOBJ)): $(ASRC)
+ $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
+ $(AR) $(ARFLAGS) $@ $*.o
+
+$(LIBC)(cprintf.o): cprintf.c
+ $(CC) -c -ansi $(ARCH) $(CCFLAGS) $(DEFS) $*.c
+ $(AR) $(ARFLAGS) $@ $*.o
+
+
+
+clean:
+ rm -f *.o libc.a