Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

flashrom 0.9.9 make file has an uninstall target?

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
hthi
Posts: 213
Joined: 2015-05-09 15:43
Has thanked: 1 time

flashrom 0.9.9 make file has an uninstall target?

#1 Post by hthi »

flashrom-0.9.9

This is the source software of the make file

Code: Select all

# This file is part of the flashrom project.
#
# This Makefile works standalone, but it is usually called from the main
# Makefile in the flashrom directory.

PROGRAM=ich_descriptors_tool
EXTRAINCDIRS = ../../ .
DEPPATH = .dep
OBJATH = .obj
SHAREDSRC = ich_descriptors.c
SHAREDSRCDIR = ../..
# If your compiler spits out excessive warnings, run make WARNERROR=no
# You shouldn't have to change this flag.
WARNERROR ?= yes

SRC = $(wildcard *.c)

CC ?= gcc

# If the user has specified custom CFLAGS, all CFLAGS settings below will be
# completely ignored by gnumake.
CFLAGS ?= -Os -Wall -Wshadow
ifeq ($(TARGET_OS), DOS)
# DJGPP has odd uint*_t definitions which cause lots of format string warnings.
CFLAGS += -Wno-format
endif
ifeq ($(WARNERROR), yes)
CFLAGS += -Werror
endif


FLASHROM_CFLAGS += -MMD -MP -MF $(DEPPATH)/$(@F).d
# enables functions that populate the descriptor structs from plain binary dumps
FLASHROM_CFLAGS += -D ICH_DESCRIPTORS_FROM_DUMP
FLASHROM_CFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS))

OBJ = $(OBJATH)/$(SRC:%.c=%.o)

SHAREDOBJ = $(OBJATH)/$(notdir $(SHAREDSRC:%.c=%.o))

all:$(PROGRAM)$(EXEC_SUFFIX)

$(OBJ): $(OBJATH)/%.o : %.c
	$(CC) $(CFLAGS) $(CPPFLAGS) $(FLASHROM_CFLAGS) -o $@ -c $<

# this enables us to share source files without simultaneously sharing .o files
# with flashrom, which would lead to unexpected results (w/o running make clean)
$(SHAREDOBJ): $(OBJATH)/%.o : $(SHAREDSRCDIR)/%.c
	$(CC) $(CFLAGS) $(CPPFLAGS) $(FLASHROM_CFLAGS) -o $@ -c $<

$(PROGRAM)$(EXEC_SUFFIX): $(OBJ) $(SHAREDOBJ)
	$(CC) $(LDFLAGS) -o $(PROGRAM)$(EXEC_SUFFIX) $(OBJ) $(SHAREDOBJ)

clean:
	rm -f $(PROGRAM) $(PROGRAM).exe
	rm -rf $(DEPPATH) $(OBJATH)

# Include the dependency files.
-include $(shell mkdir -p $(DEPPATH) $(OBJATH) 2>/dev/null) $(wildcard $(DEPPATH)/*)

.PHONY: all clean
Is there an uninstall target in the make file?
Thank you.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: flashrom 0.9.9 make file has an uninstall target?

#2 Post by stevepusser »

LMRTFY (Let me read that for you):
# This Makefile works standalone, but it is usually called from the main
# Makefile in the flashrom directory.
So there is a main MakeFile elsewhere. Often you have to create this with a configure step first.

But I must ask why you are trying to compile 0.9.9 when Debian stretch has a newer 0.9.9+r1954 in the main repository. If you're running an older Debian, you can very probably backport the package and save yourself a lot of hassle.
MX Linux packager and developer

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: flashrom 0.9.9 make file has an uninstall target?

#3 Post by debiman »

this is mostly plain english in plain text files.
i open the file in my favorite editor, and search for the string 'uninstall' - case INsensitive just to be sure.

hthi
Posts: 213
Joined: 2015-05-09 15:43
Has thanked: 1 time

Re: flashrom 0.9.9 make file has an uninstall target?

#4 Post by hthi »

Thanks.

Code: Select all

search for the string 'uninstall'
I found another bigger make file. Searched for uninstall. The word is not in the make file.

In readme file it says
'In order to install flashrom and the manpage into /usr/local, type:
make install'

Flashrom 0.9.9 gets installed into folder /usr/local?
why you are trying to compile 0.9.9
I want to install flashrom 0.9.9 on a raspberry pi 0. I could not find flashrom in the
previous version of raspbian.
I compiled and installed flashrom on the raspberry pi 0. I was not sure installation went
without errors. But I did not know how to uninstall. A new version of raspbian has been
released. I have installed it. I found flashrom in the synaptic package manager in
raspbian.

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: flashrom 0.9.9 make file has an uninstall target?

#5 Post by debiman »

hthi wrote:I found another bigger make file. Searched for uninstall. The word is not in the make file.
assuming there's no other files included, that probably means that there is no uninstall routine.

Post Reply