File: Makefile

package info (click to toggle)
855resolution 0.3-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 96 kB
  • ctags: 93
  • sloc: ansic: 402; makefile: 67; sh: 30
file content (26 lines) | stat: -rw-r--r-- 727 bytes parent folder | download
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
PRG=855resolution

# Uncomment this line if you want to test with a VBIOS image file
#VBIOS_FILE:=-DVBIOS_FILE='"../vbios"'

PLUGINS_SRCS:=${shell ls plugins/*.c}
SRCS=855resolution.c vbios.c ${PLUGINS_SRCS}
OBJS=${SRCS:.c=.o}

PLUGINS_LIST:=${shell cd plugins;ls -x *.c | sed -e 's/.c//g' -e 's/  */,/g' }
PLUGINS_ADDR:=${shell echo ${PLUGINS_LIST} | sed -e 's/^/\&/g' -e 's/,/,\&/g' }
VERSION:=${shell cat VERSION.txt}

CFLAGS:=-s -Wall -DVERSION='"${VERSION}"' -DPLUGINS='${PLUGINS_LIST}' -DREF_PLUGINS='${PLUGINS_ADDR}' ${VBIOS_FILE}

${PRG}: ${OBJS}

clean:
	rm -f ${OBJS} ${PRG} *~ plugins/*~

install: ${PRG}
	cp ${PRG} /usr/sbin

dump:
	# Create a VBIOS image file
	dd if=/dev/mem of=vbios.dmp bs=16384 skip=48 count=4