1##############################################################################
2#   MAKEFILE - this file is part of Binary vIEW project (BIEW)               #
3##############################################################################
4#   Copyrights:           1998, 2000 Nickols_K                               #
5#   License:              See below                                          #
6#   Author and developer: Nickols_K                                          #
7#   Requirement:          GNU make                                           #
8#   Original file name:   makefile                                           #
9####################### [ D e s c r i p t i o n ] ############################
10#  This file is script for make utility of GNU development system.           #
11########################### [ L i c e n c e ] ################################
12# The Binary vIEW (BIEW) is copyright (C) 1995 Nickols_K.                    #
13# All rights reserved. This software is redistributable under the licence    #
14# This software is redistributable under the licence given in the file       #
15# "Licence.en" ("Licence.ru" in russian translation) distributed in the BIEW #
16##############################################################################
17
18##############################################################################
19#  Main configure section of this makefile                                   #
20##############################################################################
21
22# Please select target platform. For detail see ../../makefile
23TARGET_PLATFORM=i386
24
25# Please select target operation system. For detail see ../../ makefile
26TARGET_OS=unix
27
28# For detail see ../../makefile
29HOST_CFLAGS=
30
31# For detail see ../../makefile
32HOST_LDFLAGS=
33
34# For detail see ../../makefile
35TARGET_SCREEN_LIB = curses
36
37# For detail see ../../makefile
38USE_MOUSE=n
39
40# For detail see ../../makefile
41USE_SELECT=y
42
43# For detail see ../../makefile
44compilation=normal
45
46include ../../makefile.inc
47
48###########################################################################
49# TARGET: put name of executable image here                               #
50###########################################################################
51TARGET = twintest
52
53##########################################################################
54#                Please not modify contents below                        #
55##########################################################################
56
57INCS = -I.
58LIBS = -L./biewlib -lbiew $(OS_LIBS)
59OBJS = twintest.o
60all: $(TARGET)
61
62clean:
63	$(RM) $(OBJS)
64	$(RM) $(TARGET)
65	$(RM) biew.map
66
67cleansys:
68	$(RM) lib/sysdep/$(MACHINE)/$(HOST)/*.o
69
70$(TARGET): $(OBJS)
71	$(LD) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
72
73%.o : %.c
74ifeq ($(bad_os),yes)
75	@echo Please select valid TARGET_OS
76	@exit
77endif
78ifeq ($(bad_machine),yes)
79	@echo Please select valid TARGET_MACHINE
80	@exit
81endif
82	$(CC) $(CFLAGS) $(INCS) -c $< -o $@
83
84twintest.o:                                   twintest.c
85