Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
0X1A committed Jan 5, 2016
0 parents commit 1bca553
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 0 deletions.
57 changes: 57 additions & 0 deletions Makefile
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This is a repository to test mpm's git source functionality
6 changes: 6 additions & 0 deletions test.c
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;
}

0 comments on commit 1bca553

Please sign in to comment.