File: makefile

package info (click to toggle)
biew 5.6.2-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,004 kB
  • ctags: 7,157
  • sloc: ansic: 50,860; asm: 809; makefile: 396; pascal: 371
file content (86 lines) | stat: -rw-r--r-- 2,982 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
##############################################################################
#   MAKEFILE - this file is part of Binary vIEW project (BIEW)               #
##############################################################################
#   Copyrights:           1998, 2000 Nick Kurshev                            #
#   License:              See below                                          #
#   Author and developer: Nick Kurshev                                       #
#   Requirement:          GNU make                                           #
#   Original file name:   makefile                                           #
####################### [ D e s c r i p t i o n ] ############################
#  This file is script for make utility of GNU development system.           #
########################### [ L i c e n c e ] ################################
# The Binary vIEW (BIEW) is copyright (C) 1995 Nick Kurshev.                 #
# All rights reserved. This software is redistributable under the licence    #
# This software is redistributable under the licence given in the file       #
# "Licence.en" ("Licence.ru" in russian translation) distributed in the BIEW #
##############################################################################

##############################################################################
#  Main configure section of this makefile                                   #
##############################################################################

# Please select target platform. For detail see ../../makefile
TARGET_PLATFORM=i386

# Please select target operation system. For detail see ../../ makefile
TARGET_OS=unix

# For detail see ../../makefile
HOST_CFLAGS=

# For detail see ../../makefile
HOST_LDFLAGS=

# For detail see ../../makefile
TARGET_SCREEN_LIB = curses

# For detail see ../../makefile
USE_MOUSE=n

# For detail see ../../makefile
USE_SELECT=y

# For detail see ../../makefile
compilation=normal

include ../../makefile.inc

###########################################################################
# TARGET: put name of executable image here                               #
###########################################################################
TARGET = finitest

##########################################################################
#                Please not modify contents below                        #
##########################################################################

INCS = -I.
LIBS = -L./biewlib -lbiew $(OS_LIBS)
OBJS = finitest.o

all: $(TARGET)

clean:
	$(RM) $(OBJS)
	$(RM) $(TARGET)
	$(RM) biew.map

cleansys:
	$(RM) lib/sysdep/$(MACHINE)/$(HOST)/*.o

$(TARGET): $(OBJS)
	$(LD) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)

%.o : %.c
ifeq ($(bad_os),yes)
	@echo Please select valid TARGET_OS
	@exit
endif
ifeq ($(bad_machine),yes)
	@echo Please select valid TARGET_MACHINE
	@exit
endif
	$(CC) $(CFLAGS) $(INCS) -c $< -o $@

finitest.o:                                   finitest.c