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 = finitest 52 53########################################################################## 54# Please not modify contents below # 55########################################################################## 56 57INCS = -I. 58LIBS = -L./biewlib -lbiew $(OS_LIBS) 59OBJS = finitest.o 60 61all: $(TARGET) 62 63clean: 64 $(RM) $(OBJS) 65 $(RM) $(TARGET) 66 $(RM) biew.map 67 68cleansys: 69 $(RM) lib/sysdep/$(MACHINE)/$(HOST)/*.o 70 71$(TARGET): $(OBJS) 72 $(LD) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) 73 74%.o : %.c 75ifeq ($(bad_os),yes) 76 @echo Please select valid TARGET_OS 77 @exit 78endif 79ifeq ($(bad_machine),yes) 80 @echo Please select valid TARGET_MACHINE 81 @exit 82endif 83 $(CC) $(CFLAGS) $(INCS) -c $< -o $@ 84 85finitest.o: finitest.c 86 87