-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 1bca553
Showing
3 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
INSTALL = /usr/bin/env install | ||
AR = /usr/bin/ar | ||
DEST = | ||
PREFIX = /usr | ||
BINDIR = $(PREFIX)/bin | ||
LIBDIR = $(PREFIX)/lib | ||
MANDIR = $(PREFIX)/share/man | ||
TRGT = hello-mpm | ||
LINK = gcc | ||
COMP = gcc | ||
CFLAGS = | ||
LFLAGS = | ||
LIBS = | ||
INCPATH = -I/usr/include | ||
LIBDIR = -L/usr/lib | ||
CLN = | ||
OBJ = test.o | ||
DEL = rm -f | ||
|
||
.SUFFIXES: .o .c .cpp .cc .cxx .C | ||
|
||
.cpp.o: | ||
$(COMP) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" | ||
|
||
.cc.o: | ||
$(COMP) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" | ||
|
||
.cxx.o: | ||
$(COMP) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" | ||
|
||
.C.o: | ||
$(COMP) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" | ||
|
||
.c.o: | ||
$(COMP) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" | ||
|
||
all: $(TRGT) | ||
|
||
$(TRGT): $(OBJ) | ||
$(COMP) $(LFLAGS) -o $(TRGT) $(OBJ) $(LIBDIR) $(LIBS) | ||
|
||
test.o: test.c | ||
$(COMP) -c $(CFLAGS) $(INCPATH) -o test.o test.c | ||
|
||
clean: | ||
$(DEL) $(OBJ) | ||
$(DEL) $(CLN) | ||
$(DEL) $(TRGT) | ||
$(DEL) hello-mpm-x86_64.pkg.tar | ||
$(DEL) -r build | ||
|
||
install: | ||
$(INSTALL) -d $(DEST)$(BINDIR) | ||
$(INSTALL) -m755 hello-mpm $(DEST)$(BINDIR)/hello-mpm | ||
|
||
uninstall: | ||
rm -f $(DEST)$(BINDIR)/hello-mpm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This is a repository to test mpm's git source functionality |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#include <stdio.h> | ||
|
||
int main(int argc, char **argv) { | ||
printf("Hello mpm!\n"); | ||
return 0; | ||
} |