Skip to content

Commit

Permalink
add makefile, rename
Browse files Browse the repository at this point in the history
  • Loading branch information
danitool committed Aug 9, 2021
1 parent 015a2bb commit 664005e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
PROGS = sercomm-recovery
OBJS = sercomm-recovery.o

INSTDIR = $(prefix)/bin/
INSTMODE = 0755
INSTOWNER = root
INSTGROUP = root

all: $(PROGS)

$(PROGS): $(OBJS)
$(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@

install: $(PROGS)
$(INSTALL) -d $(INSTDIR)
$(INSTALL) -m $(INSTMODE) -o $(INSTOWNER) -g $(INSTGROUP) $(PROGS) $(INSTDIR)

clean:
rm -f $(PROGS) *.o
File renamed without changes.

0 comments on commit 664005e

Please sign in to comment.